Forum Discussion
LangMan123
7 months agoRegular Visitor
Azure Map conditional line color
Hi, Is it possible to conditionally change the color of a path line in the Azure Map visual? I can conditionally change the color of the bubbles but not the line. I need to indicate during a ...
- 7 months ago
Hi LangMan123
This is my workaround suggestion:
- Create a Legend column for your red and green paths.
- Duplicate the red lines as green and merge them into your main table.
- Create a Legend Sort Order column and assign a higher number to the red line.
- Use the Sort by Column option to sort the Legend column using this sort order column.
I have attached the sample I created for your reference.
rohit1991
7 months agoSuper User
Hii LangMan123
Line color is a single static setting for the entire path, so you can’t change it dynamically based on speed or any other condition.
Workarounds: split the route into multiple line layers (or separate records) by speed band so each layer has a fixed color, or use points/bubbles (which do support conditional coloring) or a custom map visual if true conditional line coloring is required.
LangMan123
7 months agoRegular Visitor
Only method kind of working is by using the bubbles, but the client would like to see this on the line without bubbles.
Do you know of any custom map visual? I tried RouteMap but it's using Bing maps which are not supported any longer.