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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Ekaterina13
Frequent Visitor

Azure Maps Dual-Layer: Dynamic GeoJSON Polygons & Road Work Points

Hello,

I need help evaluating the feasibility of a client requirement.

I would like to display two different layers within a single visual in Power BI:

  1. Lower Layer:
    Polygons loaded directly from a GeoJSON file. These polygons should be colored based on a numeric value contained in the JSON (the higher the value, the more saturated the color should be).

  2. Upper Layer:
    Shapes representing road works (for now, let's assume these will be points).

I managed to build a visual containing both layers, but the reference layer (the polygons) remains the default light blue, and I haven't been able to change its color.

I also tried importing two separate datasets in table format (one for points and one for polygons). However, when I assign polygon geometry to the "Location" field, the points with latitude/longitude don't display correctly.

Could you please advise if this requirement is achievable in Power BI and, if so, what steps I should follow?

I truly appreciate your support.

Thank you!

Ekaterina13_0-1739364682639.png

 

 

 

1 ACCEPTED SOLUTION
v-cgao-msft
Community Support
Community Support

Hi @Ekaterina13 ,

 

-- Polygons loaded directly from a GeoJSON file. These polygons should be colored based on a numeric value contained in the JSON...
-- I managed to build a visual containing both layers, but the reference layer (the polygons) remains the default light blue, and I haven't been able to change its color.

Check the fillcolor field in the .geojson file provided as an example in the reference docs:

vcgaomsft_0-1739427781031.png

vcgaomsft_2-1739428513055.png

AzureMapsCodeSamples/Static/data/geojson at main · Azure-Samples/AzureMapsCodeSamples · GitHub

Add a reference layer to Azure Maps Power BI visual - Style configuration

vcgaomsft_1-1739428325165.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

2 REPLIES 2
Ekaterina13
Frequent Visitor

Thank you, "fillcolor" helped me to have a custom colors on the polygons!

v-cgao-msft
Community Support
Community Support

Hi @Ekaterina13 ,

 

-- Polygons loaded directly from a GeoJSON file. These polygons should be colored based on a numeric value contained in the JSON...
-- I managed to build a visual containing both layers, but the reference layer (the polygons) remains the default light blue, and I haven't been able to change its color.

Check the fillcolor field in the .geojson file provided as an example in the reference docs:

vcgaomsft_0-1739427781031.png

vcgaomsft_2-1739428513055.png

AzureMapsCodeSamples/Static/data/geojson at main · Azure-Samples/AzureMapsCodeSamples · GitHub

Add a reference layer to Azure Maps Power BI visual - Style configuration

vcgaomsft_1-1739428325165.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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