Forum Discussion
Azure Maps cannot display value labels or dynamic categories — are there ANY supported solutions?
- 5 months ago
Hi DiligentPBIUser,
Thank you for the response, currently azure maps does not support displaying dynamic measure based labels directly on the map.
As we haven’t heard back from you, we wanted to kindly follow up to check if you have had a chance to try the SVG approach? If not please try the SVG solution and let us know if you need any further assistance.
Thanks and regards,
Anjan Kumar Chippa
You can bypass the native bubble layer entirely by using DAX to write a custom Scalable Vector Graphic (SVG). This allows you to draw your own "bubble" that has your dynamic measure text baked right into the center of it. Because it is a measure, it will respond perfectly to your slicers.
Dynamic SVG Marker =
VAR _MeasureValue = FORMAT([Your Measure], "#,##0")
VAR _FontSize = "16"
VAR _svg =
"<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 90' width='60' height='90'>
<circle cx='30' cy='60' r='25' fill='rgba(0, 120, 212, 0.9)' stroke='rgb(0, 80, 150)' stroke-width='2' />
<text x='30' y='25' font-family='Segoe UI, sans-serif' font-size='" & _FontSize & "' font-weight='bold' fill='black' text-anchor='middle'>" & _MeasureValue & "</text>
</svg>"
RETURN
"data:image/svg+xml;utf8," & _svg
You need to adjust the SVG according to your need. in the format pan, select Marker type to image from Marker option.
Click the fx button
Select the measure
and press ok.
or you need to download the Icon Map custom visual
If this solves your problem, please mark this as solved and give a kudos.