The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 |
---|---|
78 | |
77 | |
38 | |
31 | |
28 |
User | Count |
---|---|
106 | |
98 | |
55 | |
49 | |
47 |