postor / cesiumjs-heat

heatmap for cesium | cesium的热力图
https://www.npmjs.com/package/cesiumjs-heat
MIT License
58 stars 14 forks source link

How to get layer outside? #2

Closed qdxkrs closed 4 years ago

qdxkrs commented 4 years ago

thanks for your work on heatmap.hower,how to get the layer outside,this is one very common case especially for controller heatmap layer.

postor commented 4 years ago

Do you mean to destory the heat layer? see cod in https://github.com/postor/cesiumjs-heat#usage usage secction heat.destory()

postor commented 4 years ago

In case you want to use heat instance in another module, just export it

postor commented 4 years ago

I close it for now, you can still comment in this thread or open another issue

postor commented 4 years ago

Ah for the layer, it is tricky, you can get it by heat.layer but it changes when camera move, so I'm not exposing it