@naivemap/mapbox-gl-echarts-layer
Version:
Integrate the Lines graph and Scatter (bubble) chart of Apache ECharts.
22 lines (21 loc) • 958 B
TypeScript
/// <reference types="mapbox-gl" />
import { ComposeOption, EffectScatterSeriesOption, LegendComponentOption, LinesSeriesOption, ScatterSeriesOption, TitleComponentOption, TooltipComponentOption } from 'echarts';
export declare type ECOption = ComposeOption<TitleComponentOption | TooltipComponentOption | LegendComponentOption | LinesSeriesOption | ScatterSeriesOption | EffectScatterSeriesOption>;
export default class EChartsLayer implements mapboxgl.CustomLayerInterface {
id: string;
type: 'custom';
renderingMode?: '2d' | '3d' | undefined;
private _container;
private _map;
private _ec;
private _coordSystemName;
private _ecOption;
constructor(id: string, ecOption: ECOption);
onAdd(map: mapboxgl.Map): void;
onRemove(): void;
setOption(option: ECOption): void;
render(): void;
private _prepareECharts;
private _createLayerContainer;
private _removeLayerContainer;
}