Forum Discussion
Need a help: Polygon map in Azure as a Reference Layer
- 10 months ago
Hi Krish_nidar , Thank you for reaching out to the Microsoft Fabric Community Forum.
If some freezones don’t appear shaded, the issue is inside the GeoJSON rather than Power BI. Polygons are skipped if coordinates are flipped (latitude, longitude instead of longitude, latitude), if the shape isn’t closed (last point must repeat the first) or if the geometry is invalid or self-intersecting.
The quickest way to confirm this is to upload your file into mapshaper. If polygons are missing there too, the geometry is broken. Run the Clean command and export, this repairs unclosed or invalid shapes. Reload that cleaned file in Power BI and the missing zones should appear.
For labels, Azure Maps can’t show text directly on polygons. You’ll need a centroid point for each freezone, with its name as a property. mapshaper can generate these centroids as a new layer, which you then load into Power BI as a bubble or marker layer with the name field bound to the label.
Dotted outlines aren’t supported. The usual alternative is a semi-transparent fill with a solid border. If a dotted effect is essential, you’d have to pre-generate boundary points and style them as small markers.
- 10 months ago
Hi Krish_nidar , hope you are doing great. May we know if your issue is solved or if you are still experiencing difficulties. Please share the details as it will help the community, especially others with similar issues.
Hi Krish_nidar , Thank you for reaching out to the Microsoft Fabric Community Forum.
You can shade the seven Emirates correctly in Power BI by loading your Emirates GeoJSON as a Reference Layer in the Azure Maps visual. From the formatting pane, set the fill color and transparency, this will give you proper polygon shading with clear boundaries.
For the freezones, you can also load them as polygons in a reference layer. However, Power BI’s Azure Maps does not support dotted or dashed outlines or patterned fills. The best you can do is use a semi-transparent fill with a solid border or convert the freezone polygon into a line-only GeoJSON if you just want to show the boundary.
To display the freezone name with a marker, you’ll need to provide a point location (usually the centroid of the freezone). You can add this as a Point feature in the same GeoJSON or as a separate table in Power BI with latitude/longitude and the freezone name. Then, use the Bubble layer in Azure Maps and enable labels so the name appears next to the marker.
Layers in an Azure Maps Power BI visual - Microsoft Azure Maps Power BI visual | Microsoft Learn
Get started with Azure Maps Power BI visual - Microsoft Azure Maps | Microsoft Learn
https://learn.microsoft.com/en-us/power-bi/visuals/power-bi-map-tips-and-tricks