Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

How to add zoom button to JSON theme?

I am trying to create a custom map theme with zoom buttons using JSON. Everything works in this code chunk except the "zoomButtons" attribute. What am I doing wrong?

      "map":{
         "*":{
            "mapControls":[
               {
                  "autoZoom":true,
                  "zoomLevel":4,
                  "centerLatitude":43,
                  "centerLongitude":-83,
                  "zoomButtons": true
               }
            ]
         }
      }

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I found my own answer, via reddit: https://www.reddit.com/r/PowerBI/comments/i4wk9d/how_to_add_zoom_buttons_to_json_theme/

 

The correct attribute  was not "zoomButtons" but "showZoomButtons".

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

I found my own answer, via reddit: https://www.reddit.com/r/PowerBI/comments/i4wk9d/how_to_add_zoom_buttons_to_json_theme/

 

The correct attribute  was not "zoomButtons" but "showZoomButtons".

Hi @Anonymous ,

It's glad to hear that your problem has been resolved. And thanks for sharing your solution with us, it will help others in the community if they face the same problem with you. 

Best Regards

Rena

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-yiruan-msft
Community Support
Community Support

Hi @Anonymous ,

You can refer the content in the following link:

PowerBI-ThemeTemplates

Best Regards

Rena

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

Greg_Deckler
Super User
Super User

@Anonymous - Check powerbi.tips @Mike_Carlo 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.