question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Editable GeoJsonLayer? (Way to draw new features)

See original GitHub issue

First 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:closed
  • Created 6 years ago
  • Comments:16 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
ghostcommented, Jan 26, 2018

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.

2reactions
ghostcommented, May 7, 2018

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:

@ralphstodomingo https://github.com/ralphstodomingo Did you manage to get through? Did you work on any sample? That would be terrific!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/uber/deck.gl/issues/818#issuecomment-386632472, or mute the thread https://github.com/notifications/unsubscribe-auth/AOoXKWLryNtxymvtGGZ8S8uxyEpw02pMks5tvHAwgaJpZM4OmFi6 .

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found