starschema / mapboxgl-powerbi

Mapbox Visual for Power BI - High performance, custom map visuals for Power BI dashboards
https://appsource.microsoft.com/en-us/product/power-bi-visuals/WA104381472?tab=Overview
MIT License
34 stars 9 forks source link

[FEATURE REQUEST] - Choropleth hover and mouseover options #35

Closed mate-turi closed 1 year ago

mate-turi commented 2 years ago

Describe the solution you'd like

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: image

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: image

Ability to set the fill opacity only. 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:

image