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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
samye228
Helper I
Helper I

Icon Map geoJSON Use Formatting

Hello,

 

I am trying to add style attributes to a geoJSON file so it will be rendered in the IconMap visual. I have looked at the IconMap page and under geoJSON there is a bullet point, 

  • Set the fill color, outline color, opacity and outline width based on measure values

I am not understanding how to fill the opacity based on measure values. Can someone please explain? 

Also, I was looking at the "Use formatting from the GeoJSON..." but I don't think that is what is needed.

I am overlaying parcels and want transparency of about 75% so the buildings can be seen.

 

I found where I could create a measure with the opacity. 

MapColor = "rgba(255, 255, 224, 0.5)" assign it to the Fill Color of inactive shapes conditional formatting and I can see the shapes through the map.
 
Is this correct?

 

Thank you,

Carol

1 ACCEPTED SOLUTION
rajendraongole1
Super User
Super User

Hi @samye228 -Yes, you're on the right track! In IconMap, you can use a measure to dynamically set the styling attributes of GeoJSON features, including opacity. 

 

Define an RGBA color measure in DAX, where the last value (alpha) controls the transparency:

MapColor = "rgba(255, 255, 224, 0.75)"

In the IconMap visual:
Go to the Format Pane.
Navigate to the Shapes section (where you configured the GeoJSON).
Under Fill Color, click on the fx (conditional formatting) button.
Choose the measure (MapColor) you created.
Overlay Parcels with Transparency:

Ensure the GeoJSON file includes a valid "style" property or uses the dynamic style based on the measure you've created.
If you're seeing the parcels with transparency and the underlying buildings are visible, then your setup is working correctly.

Icon Map

GeoJSON

 

Hope the above details helps.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

1 REPLY 1
rajendraongole1
Super User
Super User

Hi @samye228 -Yes, you're on the right track! In IconMap, you can use a measure to dynamically set the styling attributes of GeoJSON features, including opacity. 

 

Define an RGBA color measure in DAX, where the last value (alpha) controls the transparency:

MapColor = "rgba(255, 255, 224, 0.75)"

In the IconMap visual:
Go to the Format Pane.
Navigate to the Shapes section (where you configured the GeoJSON).
Under Fill Color, click on the fx (conditional formatting) button.
Choose the measure (MapColor) you created.
Overlay Parcels with Transparency:

Ensure the GeoJSON file includes a valid "style" property or uses the dynamic style based on the measure you've created.
If you're seeing the parcels with transparency and the underlying buildings are visible, then your setup is working correctly.

Icon Map

GeoJSON

 

Hope the above details helps.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.