I have a map where i used the leafet-geojson-vt plugin ( https://github.com/brandonxiang/leaflet-geojson-vt/tree/leaflet1.0.0 ) to draw GEOJSON data in a canvas layer with geojson-vt.
(我有一张地图,在其中我使用了leafet-geojson-vt插件( https://github.com/brandonxiang/leaflet-geojson-vt/tree/leaflet1.0.0 )在带有geojson-vt的画布层中绘制GEOJSON数据。)
I'm able to add the layer to the map, however, I don't know how to add popups on click for each polygon/tile/feature in the layer.
(我可以将图层添加到地图上,但是,我不知道如何在单击时为图层中的每个多边形/图块/要素添加弹出窗口。)
I've tried searching for examples but cannot find ones using the geojson-vt plugin.(我尝试搜索示例,但无法使用geojson-vt插件找到示例。)
How can I add such functionality using the example in the link above?
(如何使用上面的链接中的示例添加此类功能?)
Any help is appreciated.
(任何帮助表示赞赏。)
ask by alfy translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…