mapbox / geojson.io

A quick, simple tool for creating, viewing, and sharing spatial data
http://geojson.io/
ISC License
1.87k stars 560 forks source link

Highlight selected feature #861

Open stevage opened 11 months ago

stevage commented 11 months ago

It would be very useful if the currently selected (ie, by clicking) feature was shown in a different color.

Helps in a lot of situations where you aren't sure what the exact geometry of the given thing is.

chriswhong commented 10 months ago

+1 I have wanted this for a long time (hover on table and highlight on map, hover on map and highlight on table).

The current architecture makes this not so straightforward to implement. I would really like to port this whole thing to react to make it easier to bring in a proper table component to allow sorting, editing, highlighting, etc. It's a big lift and I have also wondered if there might be a way to do it sequentially.

stevage commented 10 months ago

Interactions with the table tab might be a nice to have, but imho, not essential for the basic functionality here. Currently when you click on a feature, you get a popup on it. I'm just suggesting that the feature itself be highlighted too.

chriswhong commented 10 months ago

I see, I was reading too quickly and thought you meant you wanted highlighting in the table when a feature is selected on the map. I support this feature.