@anstec/earth-plugins
v0.1.0
Published
Plugins for module [@anstec/earth](https://www.npmjs.com/package/@anstec/earth).
Readme
@anstec/earth-plugins
Plugins for module @anstec/earth.
Before start
Before start using this module, install packages blow manually: @anstec/earth.
Then install this module:
npm install @anstec/earth-pluginsGet started
To use plugin echarts overlay:
// in your map module, when initializing the cesium viewer
import { type Earth, createEarth } from "@anstec/earth"
import { registerEChartsOverlay, EChartsOverlay } from "@anstec/earth-plugins"
const earth: Earth = createEarth()
// register echarts overlay, to syncronize the coordinate with cesium viewer
registerEChartsOverlay(earth)
// then create the echarts overlay
const overlay = new EChartsOverlay(earth, { option: { /** your echarts option */ } })
