I’m creating a Dash app in which I’m drawing points and lines on a map as suggested here: How to plot lines between locations on a map at a city level=
However, I need different points and lines to be of different sizes (or widths) and colors, so I have had to create separate layers for each of them and pass them in the layout to an empty
go.Scattermapbox(). Now, I want to show labels when the user hovers upon a point on the map. Is there any way to do this?
I’m ideally looking for something of this sort: https://www.mapbox.com/mapbox-gl-js/example/popup-on-hover/, but I’m not sure how to use the properties within the GeoJSON source to modify something.