Forum Discussion
Need a help: Polygon map in Azure as a Reference Layer
Hi Team,
So far i am getting so much of valuable help from you all. Thank you so much. By having confidence in you all, I am having one more requirement help
I plan to use Azure map (Polygon map in reference layer) for following requirement
1) UAE emirates (7 emirates) to be plotted as below with shading .I used fille map below. But its wrong shading.
2) At the same time, i need to mark the freezones with marker (Location marker ) .
I collected lat long coordinates for all the 10 corners of the one freezone
i created geojson file with these coordinates using geojson.io
I am not able arrive below
A) Freezone boundary to be dottd shade
B) Freezone name to be shown in label with marker (Location marker)
I am not able to acheive this.
Sampel one geojson file h : https://drive.google.com/file/d/1RRGzmn2iwXn_KlX9Af25-HV0IPXLTVt0/view?usp=sharing
Pls help on this
FYI,
Freezone in UAE means ,similar to SEZ-Special Economic Zone in india.
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.
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.
6 Replies
- v-hashadapu
Community Support
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
- Krish_nidar
Helper I
Hi Team, I tried, but few freezones (UAE) not shaded.
Geojson as below - Not allwoing to attach and hence pasted here. Any help pls ?
- v-hashadapu
Community Support
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.
- v-hashadapu
Community Support
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.
- v-hashadapu
Community Support
Hi Krish_nidar , Hope you're doing okay! May we know if it worked for you, or are you still experiencing difficulties? Let us know — your feedback can really help others in the same situation.
- v-hashadapu
Community Support
Hi Krish_nidar , Hope you're doing fine. Can you confirm if the problem is solved or still persists? Sharing your details will help others in the community.