0.3.3 • Published 11 months ago

@naivemap/mapbox-gl-echarts-layer v0.3.3

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

EChartsLayer class

npm i @naivemap/mapbox-gl-echarts-layer echarts

Signature:

export default class EChartsLayer implements mapboxgl.CustomLayerInterface

Implements: mapboxgl.CustomLayerInterface

Constructors

ConstructorDescription
(constructor)(id: string, option: ECOption)Constructs a new instance of the EChartsLayer class

Parameters

id (string) The ID of the layer.

option (ECOption) The option of the Lines graph and Scatter (bubble) chart.

export type ECOption = echarts.ComposeOption<
  | TitleComponentOption
  | TooltipComponentOption
  | LegendComponentOption
  | LinesSeriesOption
  | ScatterSeriesOption
  | EffectScatterSeriesOption
>

Methods

MethodDescription
setOption (option: ECOption)Call echartsInstance.setOption() to update the chart.

Example

// echart option
const option = {...}
const layer = new EChartsLayer('layer-id', option)

map.addLayer(layer)
0.3.3

11 months ago

0.3.2-beta.1

2 years ago

0.3.2-beta.0

2 years ago

0.3.2

2 years ago

0.3.2-beta.2

2 years ago

0.1.4-beta6

2 years ago

0.1.4-beta7

2 years ago

0.1.4-beta4

2 years ago

0.1.2-beta2

2 years ago

0.1.4-beta10

2 years ago

0.1.4-beta5

2 years ago

0.1.2-beta1

2 years ago

0.1.4-beta8

2 years ago

0.1.4-beta9

2 years ago

0.1.2

2 years ago

0.1.4-beta2

2 years ago

0.1.4-beta3

2 years ago

0.1.4-beta

2 years ago

0.1.4-beta1

2 years ago

0.1.2-beta

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.1

2 years ago

0.0.1-beta1

2 years ago

0.0.1-beta

2 years ago