Forum Discussion
Data Labels in Azure Map
Hello,
I am looking to add some data labels to my Azure map (this does not have to be azure map, can change map type if required!).
The map contains Longitude and Latitude Data per Point, I am just looking to display the name of the point.
To be specific, the points relate to specific construction projects, not places/cities/etc, and these projects are mapped to a precise longitude/latitude.
THIS IS WITHIN THE UK, NOT THE USA.
Thanks!
Hi Donerandparmo1,
I think the easiest option here is actually to use a Scatter chart rather than trying to force the labels through Azure Maps.
Since your projects have their own exact latitude/longitude, you don't really need Power BI to identify them as geographical locations. You can use the coordinates directly and use the project name as the label.
For example:
X-axis = Longitude
Y-axis = Latitude
Details = Project Name
Data labels = Project NameThat should let you position each project using its exact coordinates and display something like "Construction Pack 1" next to the point.
If you need the actual UK map as the background, then Azure Maps is still useful, but the standard Azure Maps visual has fairly limited control over custom labels for individual points. There isn't a straightforward setting to replace the coordinate/location text with a column containing your project names.
Another option would be Deneb if you need more control over exactly where and how the project names are displayed, although that would require a little more setup.
So if the requirement is simply to show the project name beside each precisely located point, I'd try the Scatter chart first. If the map background is important, then I'd investigate Azure Maps/Deneb rather than changing the underlying latitude/longitude data.
4 Replies
- ShahRukhSameer
Continued Contributor
Hi Donerandparmo1,
I think the easiest option here is actually to use a Scatter chart rather than trying to force the labels through Azure Maps.
Since your projects have their own exact latitude/longitude, you don't really need Power BI to identify them as geographical locations. You can use the coordinates directly and use the project name as the label.
For example:
X-axis = Longitude
Y-axis = Latitude
Details = Project Name
Data labels = Project NameThat should let you position each project using its exact coordinates and display something like "Construction Pack 1" next to the point.
If you need the actual UK map as the background, then Azure Maps is still useful, but the standard Azure Maps visual has fairly limited control over custom labels for individual points. There isn't a straightforward setting to replace the coordinate/location text with a column containing your project names.
Another option would be Deneb if you need more control over exactly where and how the project names are displayed, although that would require a little more setup.
So if the requirement is simply to show the project name beside each precisely located point, I'd try the Scatter chart first. If the map background is important, then I'd investigate Azure Maps/Deneb rather than changing the underlying latitude/longitude data.
- alexpokerfaceFrequent Visitor
Azure Maps doesn’t support custom text labels for your own latitude/longitude points.
If you need to display project names directly on the map, the Maps custom visual (Browse Apps | Microsoft Marketplace) supports this scenario. You can provide the label as a text measure, and the visual will display it above or below the point. Multiple text measures are supported as well — they are shown stacked vertically.
To keep the map readable, overlapping labels can be hidden automatically.
Here is a short walkthrough showing how to set up text labels in the Maps visual: Power BI Maps Visual - Labels
- v-achippa
Community Support
Hi Donerandparmo1,
Thank you for reaching out to Microsoft Fabric Community.
Thank you ShahRukhSameer and alexpokerface for the prompt response.
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided by the user's for the issue worked? or let us know if you need any further assistance.
Thanks and regards,
Anjan Kumar Chippa - v-achippa
Community Support
Hi Donerandparmo1,
We wanted to kindly follow up to check if the solution provided by the user's for the issue worked? or let us know if you need any further assistance.
Thanks and regards,
Anjan Kumar Chippa