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

Give control over layer visibility in Power BI

Open otravers opened this issue 6 years ago • 4 comments

In Mapbox Studio we have control over the visibility of each layer, but that's baked in once the custom map style is loaded in Power BI. It would be great to surface this up and make it user-selectable in PBI.

The example below shows that maps can get fairly busy, in this case by displaying bus and metro stops (each in their own layer). I'd want Power BI users to elect which layers to show/hide, though I'd want this to be restricted to the layers of my choosing, (most I'd still want to lock so as not to overwhelm the user with pointless options).

image

This request is in the same spirit as https://github.com/mapbox/mapboxgl-powerbi/issues/313 (for data). The overall idea is that things should not be locked in Mapbox Studio, but rather exposed as dynamic properties that remain under the author (and sometimes the reader)'s control once within Power BI.

This is a good illustration of what I mean (I like the grouping idea too): https://github.com/reyemtm/mapbox-layer-control

image

I like how it's implemented behind an expandable-on-hover button to reduce clutter on https://openinframap.org/, they also do this for the legend https://github.com/mapbox/mapboxgl-powerbi/issues/301#issuecomment-549137421.

image

image

otravers avatar Jun 10 '19 19:06 otravers

cc/ @samgehret

ryanbaumann avatar Jun 10 '19 22:06 ryanbaumann

Has there been any update on this feature request? I would like to experiment with the implementation, but I don't have much experience with PBI viz projects. If anyone could give me the general idea of how to do this, I would really appreciate it.

nimamaleki avatar Jul 22 '20 15:07 nimamaleki

Is there any update on this feature request please?

nnikolasn avatar Oct 29 '21 11:10 nnikolasn

Has there been any updates on this?

hauge404 avatar Aug 03 '22 12:08 hauge404