maptalks.js icon indicating copy to clipboard operation
maptalks.js copied to clipboard

fix GeometryCollection toJSON error when children has Circle etc

Open deyihu opened this issue 3 years ago • 0 comments

fix #1780

  • 原来 GeometryCollection里面如果包含Circle, toJSON会把Circle格式化成Polygon, 反序列化后,那么图形就不是Circle,是Polygon

  • 该PR可以让GeometryCollection 里的Circle等支持反序列化回来

  • 因为GeoJSON有这个严格定义,所有toGeoJSON仍然保持着原来的逻辑(Circle会被序列化成Polyong)

deyihu avatar Aug 11 '22 03:08 deyihu