geojson-rewind | enforce polygon ring winding order for geojson
kandi X-RAY | geojson-rewind Summary
kandi X-RAY | geojson-rewind Summary
enforce polygon ring winding order for geojson
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of geojson-rewind
geojson-rewind Key Features
geojson-rewind Examples and Code Snippets
Community Discussions
Trending Discussions on geojson-rewind
QUESTION
I have an issue with the DrawManager drawing and exporting the overlays into a GeoJSON object.
I can draw a polygon with holes in the DrawManager and the overlays will show holes in the object. The problem is when exporting this to the DataLayer.
The datalayer makes exporting GeoJSON easy. Regarding holes: polygon data layer
...ANSWER
Answered 2021-Feb-24 at 04:42My suggestion would be not to add the polygons to the DataLayer until they need to be exported. Remove the code that adds the polygons to the DataLayer as they are drawn, then make your export function like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install geojson-rewind
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page