mapboxgl-powerbi
mapboxgl-powerbi copied to clipboard
Choropleth hover and mouseover options
Making available the following three options for the hover
or mouseover
events on polygons in a choropleth will create a much better user experience:
-
Ability to disable the highlight altogether. Often we may want nothing to happen when a user hovers over a polygon. The tooltip may convey all the information we need. See a toy example here:
-
Ability to adjust the stroke color only. On hover, I'd like to be able to set the stroke to be another color than the default. See below for an example an how the stroke changes from grey to black on hover:
-
Ability to set the fill opacity only. Related to #248, I'd like to be able to define an opacity less than 1 on hover. See how the state fill changes when there's a hover event:
Great, clear use case and feature request ticket @tonmcg. Thank you. We'll consider these features for upcoming releases.
cc/ @samgehret
We should look at this feature after completing the featureState refactor, which will greatly increase the performance of mouseover interactions for hover/highlight/tooltip events. https://github.com/mapbox/mapboxgl-powerbi/issues/286
Feature request will be handled in the new project. Your reported feature request can be found here.