Editable GeoJsonLayer? (Way to draw new features)
See original GitHub issueFirst off, I’d like to thank everyone involved in the continued development of this project.
I’ve been using both deck.gl
and react-map-gl
trying to see if we can migrate to using these two from openlayers
. Is there a supported/tested way to add features as such?
mapbox-gl-draw
comes to mind, but there’s an issue with it with regards to react-map-gl
: https://github.com/uber/react-map-gl/issues/328
EDIT: I’m considering writing a deck.gl layer despite my limited knowledge, and am wondering if it’s possible that the GeoJsonLayer or any related sublayer can be made as to have a mode wherein a feature can be added.
Issue Analytics
- State:
- Created 6 years ago
- Comments:16 (1 by maintainers)
Top Results From Across the Web
Editable GeoJsonLayer? (Way to draw new features) #818
I relied on react-map-gl 's global map event handlers: onHover and onClick to update internal layer state (feature being edited, coordinates etc) ...
Read more >EditableGeoJsonLayer - nebula.gl
EditableGeoJsonLayer. The Editable GeoJSON layer accepts a GeoJSON FeatureCollection and renders the features as editable polygons, lines, and points.
Read more >Editing a GeoJSON layer that I just added to the map
I am only able to add new polgyons. How can I make the building_layer editable? leaflet · geojson · leaflet-draw.
Read more >Update FeatureLayer using applyEdits() | Sample Code
This sample demonstrates how to use FeatureLayer.applyEdits() to create new features, update attributes of existing features, or delete existing features.
Read more >Editable geoJSON layer on map with leaflet.draw
So, I found an answer. I'm trying to edit multipolygon, but leaflet.draw dont support them. I switched to leaflet.editable.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I managed to get it working, yes. I could probably spin up a sample soon, but I’m having doubts that it causes performance issues as seen here: https://github.com/uber/deck.gl/issues/936, where I cannot make use of fp64.
I did, but that was on an older version of deck.gl, and I had to write a picking layer mechanism to highlight shapes on selection. There was also a performance issue, where it lags so bad when I use fp64. I keep on saying this, but I’ll come around sometime soon and will try to make a sample of it working with the latest version of deck.gl, and hopefully take advantage of new features such as the new layer highlight mechanism.
On Fri, May 4, 2018 at 11:13 PM, Adlen Afane notifications@github.com wrote: