The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I have a GeoJSON file with points and each point has a name property, however the name is not showing on the map. How can I get the name to show when loading the reference layer? Or, how can I load a different column from my data table for the Category Label than the address?
Thank you for any help!
Hi @wcarter
You don't seem to be able to display the point names in the GeoJSON file on the Azure Maps reference layer in Power BI.
To display point names or annotations on Azure Maps when loading a reference layer, you typically need to ensure that the GeoJSON file is formatted correctly and that the Azure Maps Web SDK or Azure Maps Power BI visual objects are effectively utilized.
Ensure that your GeoJSON file correctly includes the properties within the array. Each point should have a object that contains a key with the desired label as its value.
If you're using the Azure Maps Web SDK, you can create a custom layer and use the property from your GeoJSON file to display labels. This involves creating a and binding the property to your attribute.
If you're using Azure Maps within Power BI, ensure that the Azure Maps visual is enabled in your organization's settings. Then, when configuring your Azure Maps visual, select the appropriate column for your labels in the "Category" field.
You can view the link below for more details:
Add a popup to a point on a map | Microsoft Learn
Get started with Azure Maps Power BI visual - Microsoft Azure Maps | Microsoft Learn
Regards,
Nono Chen
If this post helps, then please considerAccept it as the solution to help the other members find it more quickly.
Thank you for the reply, I'm using the Azure map visual in Power BI. The Category is a set of addresses, I do not want to display the text of those however, only the Name properties of the points.
Here is a sanitized sample of my GeoJSON data:
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
100,
20
]
},
"properties": {
"color": "red",
"name": "Name",
"marker-size": "medium"
}
}
]
}
Did you find a solution?
User | Count |
---|---|
65 | |
60 | |
60 | |
53 | |
27 |
User | Count |
---|---|
181 | |
88 | |
70 | |
48 | |
46 |