Leaflet JS add GeoJSON shape as a hole in a polygon(外多边形内有内多边形)

Leaflet JS add GeoJSON shape as a hole in a polygon(外多边形内有内多边形)
强烈推介IDEA2021.1.3破解激活,IntelliJ IDEA 注册码,2021.1.3IDEA 激活码  

大家好,我是架构君,一个会写代码吟诗的架构师。今天说一说Leaflet JS add GeoJSON shape as a hole in a polygon(外多边形内有内多边形),希望能够帮助大家进步!!!

  • 参考

https://gis.stackexchange.com/questions/150801/leaflet-js-add-geojson-shape-as-a-hole-in-a-polygon

http://leaflet.github.io/Leaflet.Editable/example/create-hole-on-click.html

https://lbs.amap.com/api/javascript-api/example/overlayers/draw-polygon-with-holes

https://stackoverflow.com/questions/43645172/geojson-multipolygon-with-multiple-holes

Leaflet JS add GeoJSON shape as a hole in a polygon(外多边形内有内多边形)

  • 数据结构
var scotland = L.polygon([ [[60,-13],[60,0],[50,4],[50,-13]],
                           [[55.7,-4.5],[56,-4.5],[56,-4],[55.7,-4]]
                         ]);
scotland.addTo(map);

 

  •  
本文来源huayang183,由架构君转载发布,观点不代表Java架构师必看的立场,转载请标明来源出处:https://javajgs.com/archives/18167

发表评论