The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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?
Solved! Go to Solution.
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
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
It works!
Thanks you so much Teige!
Marie
User | Count |
---|---|
83 | |
83 | |
37 | |
34 | |
32 |
User | Count |
---|---|
92 | |
79 | |
61 | |
51 | |
51 |