Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
441 views
in Technique[技术] by (71.8m points)

javascript - 在传单geojson-vt中的功能上添加弹出窗口(adding popup on features in leaflet geojson-vt)

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...