maptalks.js
maptalks.js copied to clipboard
fix GeometryCollection toJSON error when children has Circle etc
fix #1780
-
原来 GeometryCollection里面如果包含Circle, toJSON会把Circle格式化成Polygon, 反序列化后,那么图形就不是Circle,是Polygon
-
该PR可以让GeometryCollection 里的Circle等支持反序列化回来
-
因为GeoJSON有这个严格定义,所有toGeoJSON仍然保持着原来的逻辑(Circle会被序列化成Polyong)