Forum Discussion
Issue with GeoJSON Layers and Filters in Azure Maps Visual
- 10 months ago
Hello !
Thank you for posting on MS Fabric community.
When you add your GeoJSON as a reference layer in the Azure Maps visual, it’s just a static overlay and it doesn't participate in PBI filter context, so slicers won’t hide or show polygons.
When you click on the map you can can still read a feature property but the layer itself can’t be filtered.
Load the GeoJSON as model data and draw it with the visual data layer, not as a reference layer and import the GeoJSON file into PBI using PQ and expand to features then expand properties.Name and geometry.
Then create a text column that contains the geometry as GeoJSON or WKT.
In the visual, put the geometry column in Location and set Location type = Geometry and put the neighborhood name in Category and build your slicer from the same neighborhood field.
- 10 months ago
Hi danielpmaximo27,
Thank you AmiraBedh, for your insights.
This issue happens because the GeoJSON file was added as a reference layer, which only provides visual context and does not interact with slicers or filters. To enable interactivity, import the GeoJSON as model data using Power Query, expand its features and geometry, and use that field in the Azure Maps visual’s Location input.
Create an ArcGIS Map in Power BI - Power BI | Microsoft Learn
Thank you.
Hello !
Thank you for posting on MS Fabric community.
When you add your GeoJSON as a reference layer in the Azure Maps visual, it’s just a static overlay and it doesn't participate in PBI filter context, so slicers won’t hide or show polygons.
When you click on the map you can can still read a feature property but the layer itself can’t be filtered.
Load the GeoJSON as model data and draw it with the visual data layer, not as a reference layer and import the GeoJSON file into PBI using PQ and expand to features then expand properties.Name and geometry.
Then create a text column that contains the geometry as GeoJSON or WKT.
In the visual, put the geometry column in Location and set Location type = Geometry and put the neighborhood name in Category and build your slicer from the same neighborhood field.
Hi Amira,
Thank you for your suggestion! I followed your steps carefully:
I imported the GeoJSON into Power BI via Power Query.
I expanded the features column, then properties.Name and geometry.
I created a text column containing the geometry (GeoJSON format) and put it in the Location field of the Azure Maps visual.
However, I am facing some issues:
When I set the geometry column in Location, the map does not update — it seems that nothing is being recognized as a point or polygon.
I couldn’t find the Location type = Geometry option or the Category field in the Azure Maps visual to adjust these settings.
So unfortunately, the map is still not responding to the slicer/filter as expected.
Could you clarify if there is a specific version of the Azure Maps visual where these options exist, or if there is another way to make the polygons responsive to filters in Power BI?
Also, if possible, could you share some screenshots showing how you configured the visual and the fields? It would help a lot to understand the steps.
Thank you!