mapboxgl-powerbi icon indicating copy to clipboard operation
mapboxgl-powerbi copied to clipboard

Choropleth hover and mouseover options

Open tonmcg opened this issue 6 years ago • 3 comments

Making available the following three options for the hover or mouseover events on polygons in a choropleth will create a much better user experience:

  1. 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: tooltip_hover

  2. 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: stroke_color

  3. 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: opacity_example

tonmcg avatar Nov 08 '18 02:11 tonmcg

Great, clear use case and feature request ticket @tonmcg. Thank you. We'll consider these features for upcoming releases.

cc/ @samgehret

ryanbaumann avatar Nov 30 '18 04:11 ryanbaumann

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

ryanbaumann avatar Apr 28 '19 22:04 ryanbaumann

Feature request will be handled in the new project. Your reported feature request can be found here.

mate-turi avatar Aug 26 '22 12:08 mate-turi