aws-amplify / maplibre-gl-draw-circle

Supports drawing/editing a circle on a Mapbox map.
https://iamanvesh.github.io/mapbox-gl-draw-circle-test/
MIT License
13 stars 2 forks source link

Error {message: "Input data given to 'mapbox-gl-draw-cold' is not a valid GeoJSON object."} with DragCircleMode #8

Open dvmai11 opened 2 years ago

dvmai11 commented 2 years ago

This seems to be a known issue for DragCircleMode. (https://github.com/iamanvesh/mapbox-gl-draw-circle/issues/21) A potential fix for this - https://github.com/iamanvesh/mapbox-gl-draw-circle/pull/12/commits/71a3834265eb8717262bb44d337cd91d31307751

... geojson.properties.active = (isActivePolygon) ? Constants.activeStates.ACTIVE : Constants.activeStates.INACTIVE; if (state.polygon.properties.center.length > 0) return display(geojson);

MaxHammermann commented 8 months ago

As this problem is still present, can someone merge this?