在Leaflet,Mapbox JS和Mapbox GL JS中,加载GeoJSON由库本身处理。从这个string中可以看出,key将内圈考虑在内,从而正确地画出了孔。
[ //Outer ring [100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0] ], [ //Inner ring (hole) [100.35, 0.35], [100.65, 0.35], [100.65, 0.65], [100.35, 0.65], [100.35, 0.35] ]
参考1:https://www.codenong.com/35936071/
参考2:https://blog.csdn.net/qq_29479841/article/details/108868201