Forum Discussion
Adding Specific Data Labels To an Azure Maps Visual
Hi All,
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.
I've attached an image of the map currently, I would just like to change the Longitude/Latitude values to something akin to "Construction Pack 1" etc..
THIS IS WITHIN THE UK, NOT THE USA.
Thanks in advance for your help.
Hi Donerandparmo1,
Thank you for reaching out to Microsoft Fabric Community.
Here looks like the issue is that project name is currently in the Legend field, please try placing the project name in the Location field and enable category labels. Go to Format visual --> Marker layer --> Category Labels. This will display the project names next to the map points.
Thanks and regards,
Anjan Kumar Chippa
7 Replies
- v-achippa
Community Support
Hi Donerandparmo1,
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution I have provided for the issue worked? or let us know if you need any further assistance.
Thanks and regards,
Anjan Kumar Chippa - ShahRukhSameer
Continued Contributor
Hi Donerandparmo1,
I think the main issue here is that Azure Maps doesn't give you much control over the labels shown next to individual points.
Since you already have the project name along with the latitude and longitude, I'd first check whether you can use the project name as the category/legend field and enable the available data label options. The problem is that Azure Maps doesn't really have a simple option to say "use this column as the label for every point".
If you don't specifically need Azure Maps, a scatter chart might be a better fit for this.
You could set it up something like:
X-axis = Longitude
Y-axis = Latitude
Details = Project Name
Data labels = Project NameThat way the latitude and longitude are still used to position the points, but the project name can be displayed instead of the coordinates.
For example:
Project Name | Latitude | Longitude
Construction Pack 1 | 51.xxxx | -0.xxxx
Construction Pack 2 | 51.xxxx | -0.xxxx
Construction Pack 3 | 51.xxxx | -0.xxxxThe other advantage of the scatter chart is that you're not relying on Power BI to interpret the location as a city or address. Your coordinates are used directly.
If keeping the map background is important, though, I'd probably stay with Azure Maps and see whether the current visual gives you the label option you need. If it doesn't, Deneb would be another option, although that would take a bit more work to build.
So if the only requirement is basically "show Construction Pack 1 instead of 54.XXXX, -1.XXXX next to each point", I'd look at the scatter chart first. It should be much easier to control the labels there.
- Donerandparmo1
Helper I
Hi Mate,
Thanks for the prompt response.
The geographical location is essential, so the scatter chart would not function.
I have the Project Name within the Legend Field, but see nowhere to show this relative to the data points:
Thanks again,
- Donerandparmo1
Helper I
I have added some image URLs to replace the Markers, and intend to just type the Project into each image manually, however, some of these images (those from SharePoint) are showing the above error (the small red triangle containing an "!").
Any ideas?
Cheers
- v-achippa
Community Support
Hi Donerandparmo1,
Thank you for reaching out to Microsoft Fabric Community.
Here looks like the issue is that project name is currently in the Legend field, please try placing the project name in the Location field and enable category labels. Go to Format visual --> Marker layer --> Category Labels. This will display the project names next to the map points.
Thanks and regards,
Anjan Kumar Chippa- Donerandparmo1
Helper I
Hi mate,
If I do that, I need to switch my latitude/longitude values to averages, which then groups all projects into a single cluster:
I need all 94 to be displayed separately.
Thanks.
- Donerandparmo1
Helper I
Hi mate,
Assigned each project lat/long within the individual table, and it worked.
Tysm!