将 shapefile 加载到传单上

Loading shapefiles onto leaflet

我想知道是否有一个插件可以通过单击按钮(或拖放)将压缩的 shapefile 加载到传单上,类似于此处找到的插件 (http://leaflet.calvinmetcalf.com/#4/48.89/-87.54)。注意:我使用的是传单的 1.0 版。任何帮助,将不胜感激。谢谢

…loading a zipped shapefile onto leaflet with the click of a button (or drag and drop)?

答案是"no"。

leaflet.shapefile plugin from calvinmetcalf allows to load shapefiles, but does not handle file read or drag-and-dropping files.

你必须自己阅读文件内容,并将其提供给leaflet.shapefile