Forum Discussion
Azure Maps GeoJSON Reference Layer Stopped Working
- Anonymous2 years ago
This looks to be a bug in the February 2024 release. Downgraded to December release and it works in Desktop again. The Service still does not work, but we are not going to downgrade the entire service for this. Should be resolved in March release according to Microsoft support.
Hi, Anonymous
Check for compatibility issues, given the recent update, it's worth checking the existing GeoJSON file for any known compatibility issues.
Get started with Azure Maps Power BI visual - Microsoft Azure Maps | Microsoft Learn
Or re-upload the GeoJSON file, and as a simple troubleshooting step, try deleting the current reference layer and re-uploading the GeoJSON file to the Azure Maps visual in Power BI.
Make sure that the GeoJSON file contains valid coordinates and attributes. You can try the following code:
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[-160.0, 37.0],
[-162.0, 37.0],
[-162.0, 36.0],
[-160.0, 36.0],
[-160.0, 37.0]
]
]
},
"properties": {
"fillColor": "#FF8A8A",
"strokeColor": "#FF8A8A",
"strokeWidth": 1
}
}
]
}
You can check out related posts:
Solved: Polygon Reference Layer in Azure Map - Microsoft Fabric Community
How to Get Your Question Answered Quickly
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous2 years agoNot applicable
Hi Anonymous
I have tried the following things:
- deleting and re-uploading the reference layer
- uploading a reference layer file with your exact code above
- creating a new .pbix file entirely and uploading the above code as a reference layer
And with all of these options, I get the same error message.
What compatibility issues could there be with a GeoJSON file? I looked through the linked documentation and didn't see anything about compatible or incompatible files.