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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

JSON file to customize Power BI template : how to customize the map theme?

Hi all,

 

I have been working on a JSON file to customize my power BI template and one of the last things that doesn't work is the map theme cusotmization. Here is whate I wrote :

  "map": {
			"*": {
				"legend": [{
					"show": false,
					"position": "Top",
					"showTitle": true,
					"titleText": "",
					"legendColor": { "solid": { "color": "#FFFFFF"}},
					"fontFamily": "Arial Black",
					"fontSize": 12
				}],
				"dataPoint": [{
					"defaultCategoryColor": { "solid": { "color": "#01B1AA"}},
					"showAllDataPoints": true
					
				}],
				"categoryLabels": [{
					"show": false,
					"color": { "solid": { "color": "#EEEEEE"}},
					"fontSize": 10,
					"fontFamily": "Arial Black",
					"enableBackground": true,
					"backgroundColor": { "solid": { "color": "#FFFFFF"}},
					"backgroundTransparency": 50
				}],				
				"bubbles": [{
					"bubbleSize": 3
				}],
				"mapControls": [{
					"autoZoom": true,
					"zoomLevel": 50,
					"centerLatitude": 43,
					"centerLongitude": -83
				}],
				"mapStyles": [{
					"maptheme": "Grayscale"
				}]
			}
		},

Unfortunately, when I import my theme, the map theme remains the default Road theme and not the Gray Scale theme I would like. Does anyone have a suggestion? 

1 ACCEPTED SOLUTION
TeigeGao
Solution Sage
Solution Sage

Hi @Anonymous ,

Please check the sample in this document: https://docs.microsoft.com/en-us/power-bi/desktop-report-themes

"mapStyles": {
        "mapTheme": [
          {
            "value": "aerial",
            "displayName": "Aerial"
          },
          {
            "value": "canvasDark",
            "displayName": "Dark"
          },
          {
            "value": "canvasLight",
            "displayName": "Light"
          },
          {
            "value": "grayscale",
            "displayName": "Grayscale"
          },
          {
            "value": "road",
            "displayName": "Road"
          }
        ]
    },

The map visual should be changed if we have set the theme true.

Best Regards,

Teige

View solution in original post

2 REPLIES 2
TeigeGao
Solution Sage
Solution Sage

Hi @Anonymous ,

Please check the sample in this document: https://docs.microsoft.com/en-us/power-bi/desktop-report-themes

"mapStyles": {
        "mapTheme": [
          {
            "value": "aerial",
            "displayName": "Aerial"
          },
          {
            "value": "canvasDark",
            "displayName": "Dark"
          },
          {
            "value": "canvasLight",
            "displayName": "Light"
          },
          {
            "value": "grayscale",
            "displayName": "Grayscale"
          },
          {
            "value": "road",
            "displayName": "Road"
          }
        ]
    },

The map visual should be changed if we have set the theme true.

Best Regards,

Teige

Anonymous
Not applicable

It works!

 

Thanks you so much Teige!

 

Marie

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors