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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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