What problem does this feature solve?
Is there a way to display points as a heatmap on the world map, but not on top of the geoJSON map, as in the example on heatmap-bmap example , but to draw them on the surface of the earth (map polygons) so that the radius and blur do not go beyond the boundaries of the territory. That is, like a height map, perhaps there are already examples with a height map in echarts? It would be great if someone could share or advise how to do this
What does the proposed API look like?
Perhaps it would be possible to draw directly on polygons in renderItem? I'm not very familiar with the API yet
6条答案
按热度按时间y1aodyip1#
Do you mean a 3D bar series on the globe or a contour map as #13909 ?
puruo6ea2#
Do you mean a 3D bar series on the globe or a contour map as #13909 ?
Thanks for these links!
I mean contour maps. They are more similar to what I want. My question was essentially, is it possible to draw directly onto a polygon? If it were possible to draw a heatmap on a polygon, then it would be possible to draw a contour map
qf9go6mv3#
Check official example to see if it works for you.. If it doesn't, please explain why.
ewm0tg9j4#
Check official example to see if it works for you.. If it doesn't, please explain why.
this is not exactly what I need. But if it would be possible to make a smooth color transition between the map polygons in this example, then that would be good too. But I dont know if it's possible.
I have points on a map with Float numeric values, and I wanted to make a heatmap for them, like in this example ( https://echarts.apache.org/examples/zh/editor.html?c=heatmap-bmap ) but so that this heatmap does not extend beyond the ground. That is, it is similar to contour map.
uz75evzq5#
@Algorush There are several map extensions for Apache ECharts. You may check which one works for you. test/custom-bmap-polygon.html is an example using Baidu Map and Apache ECharts custom series to draw the polygon. It should be similar if you are using other extensions.
mgdq6dx16#
Thanks for help!
I made three series on a map with geo component, using geoJson data: 'Heatmap', 'Scatter', and a Custom Series that fills the polygons in the
renderItem
functon.Everything is working good. Only I can’t use
api.visual('color')
inrenderItem
if there are three series. If I leave only custom series, thenapi.visual('color')
works. Cant understand why.Another issue. I added
legend
to enable and disable series. Heatmap and Scatter switch well, but Custom does not disappear. It only disappears if I select Scatter instead, but not Heatmap... What could be the reason?I will be grateful for help.
My code with options data: