Drawing a line between 2 points on a map

Drawing a line between 2 points on a map

avatar
(anonymous user)
Product: PowerShell Universal
Version: 1.4.6


Hello,

I’ve created a map that marks out all of the offices. I have a monitor going and it will detect if a remote office is down and it will change the marker color. All of this is working great, but I’d like to add lines between two markers if there is a tunnel established between 2 remote sites. It’d be best if these lines appeared when a marker is clicked, so you can see what connections the remote office has. Has anyone done anything like this with lines between two markers?

Thank you.

All Comments (2)

avatar

Just went through this and found out how to draw lines on the map

Ok. Got it working. New-UDMapVectorLayer -FillColor "black" -FillOpacity 100 -opacity 100 -weight 50 -Polyline -Positions @( @("37", "-75"); @("38", "-76") ) @Adam Driscoll, can this be added to the documentation for future people?
avatar

Omg, I didn’t see this until now. I have to try this and let you know. Thank you for your help!!!