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
LeverPowerCLiff
Frequent Visitor

Azure Maps: Reference Layer Colour Not A Function as Set In Desktop

Hi All,

 

I have recently implemented a azure map using a reference layer in the Power BI desktop:

LeverPowerCLiff_0-1732804511650.png

And as you can see the fill colour is set by a function - a colour gradient based on a measure. The map functions as expected in the desktop app.

 

But when I publish the map I just get this:

LeverPowerCLiff_1-1732804617526.png

and if I look at the "edit" options:

LeverPowerCLiff_2-1732804638837.png

The polygons are set to a constant colour and it is not possible to set them as a function. Also hovering over the visual does not display any tooltips.

If I export the data of the visual the data is as expected.

 

Why is there this difference between desktop and published?

4 REPLIES 4
stacker26
Frequent Visitor

I unfortunately have the same issue.

I cannot conditionally format the reference layer:

stacker26_0-1742081398170.png

 

Hi,

 

This issue looks different to what mine was. I had in working in the desktop version, it was only when publishing it that I lost the measure set colour for the polygons. This option was simply not available on the online version either. This issue fixed itself without input from myself. 

For your issue I would look into the tooltips and check for cohesion between the data set and the geojson file for whatever you are using to link them (region name, code, etc.)

 

I also found, when trouble shooting, that ensuring unmapped objects were not shown and that the colour in my measure was different from the default blue. It makes it easier to locate the issue.

Anonymous
Not applicable

Hi @LeverPowerCLiff ,

Regarding your problem, check if there is any defined style in your GeoJson file.

If your geospatial files (GeoJSON, KML) include predefined style properties, Power BI will utilize those styles rather than the settings configured in the format pane. Make sure your files are styled according to your requirements before uploading if you intend to use custom properties defined within them.

vzhouwenmsft_0-1732846319363.png

Add a reference layer to Azure Maps Power BI visual - Microsoft Azure Maps Power BI visual | Microso...

Link that may help

Solved: Re: Need to control the color of a Reference Layer... - Microsoft Fabric Community

 

Best Regards,
Wenbin Zhou

 

Thank you for your reply.

 

I have doubled checked the geojson file, there are no colour settings in there anywhere. I have followed the steps in that first link but the formatting of the azure map reference layer just disappears when it is published and there is no conditional formatting option in the online editor.

 

The 2nd link you sent only talks about using a 3rd party visual. Is there no way to use the azure map and the reference layer only in Power BI online?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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