I can’t get hoverinfo to display above the fill area of a polygon. The popups only display along the coordinates on the boundary of the polygon. Is using Choropleth-Mapbox the only way to have the hoverinfo display over polygons?
Simple example:
I have a sfc df with population and county for some US counties. Hoverinfo only shows up along the boundaries.
@hiorhi Thanks for your question! When the trace is scatter, I believe you can accomplish this using hoveron = "fills", but for the moment this is not supported when the trace is scatter_mapbox.
Otherwise, I believe you’re correct that choroplethmapbox is the best option for now.
Has there been any update to this functionality? Using plot_mapbox() with add_sf() with hoveron = "fills", my hover text still only shows up on the border.