Click to select Feature of Map -- Development #125
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Current behaviour is that clicking has no effect on the map and double-click resets the map to a full world view.
see: www.serratus.io/geo
In
plotly
there is alayout
setting for all graphs and one of the settings is (clickmode
](https://plotly.com/python/reference/layout/#layout-clickmode). This defaults toevent
setting but I guess we have no event triggers to make use of this.I've chnaged
clickmode
toselect
which allows me to set a given point as selected (the same as when box-select is used on multiple points). To confirm this I've changed the color of selected points to "purple" (feature we should include).The problem currently is that click-select is not loading the table-results of
SelectionInfo
(table below the graph). I can't figure out how the behaviour for loading the table is being triggered to reset and then attach it toclickmode
.Current build: https://map-select.d1w6d75be7tofa.amplifyapp.com/