# Worldmap - Navigation lines from openrouteservice - delete and color

**URL:** <https://discourse.nodered.org/t/worldmap-navigation-lines-from-openrouteservice-delete-and-color/46740>\
**Category:** Dashboard\
**Created:** [5 June 2021 13:47 UTC](https://discourse.nodered.org/t/worldmap-navigation-lines-from-openrouteservice-delete-and-color/46740 "2021-06-05T13:47:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Post date:** [5 June 2021 13:47 UTC](https://discourse.nodered.org/t/worldmap-navigation-lines-from-openrouteservice-delete-and-color/46740/1 "2021-06-05T13:47:52Z")

</div>

I want to delete and change color of lines on the Worldmap.

For the color I tried the msg.color:"#4B0082" it stay red, is this the wrong property?

For the deletion of the line I tried msd.delete:"", msd.delete:"true", what is the correct way to delete the line?

Also want to change the line width, can you?

For the flow you need to get a token from [https://openrouteservice.org/](https://openrouteservice.org/), the API call I make give you navigation between two points.  
Insert it in "Token".

You need to add the "Profile" can be any of Options ""driving-car","driving-hgv","cycling-regular","cycling-road","cycling-mountain","cycling-electric","foot-walking","wheelchair""

Right click on map and add waypoint "Start" and waypoint "End".

Click on "GET NAV"

Rout gets drawn on map

Look at the debug msg "openrouteservice" and there are quit a list of properties.

[flows.json](https://discourse.nodered.org/uploads/short-url/5sj4ixB4DmyodrDv45dmgaleYCj.json) (11.4 KB)

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [8 June 2021 22:14 UTC](https://discourse.nodered.org/t/worldmap-navigation-lines-from-openrouteservice-delete-and-color/46740/2 "2021-06-08T22:14:47Z")

</div>

As per the readme you can add other msg.payload.properties to set colour etc [GitHub - dceejay/RedMap: A web map app for Node-RED to put blobs on](https://github.com/dceejay/RedMap#options)

To delete something you need msg.payload with a name property of the thing to be deleted and a deleted property set to true.

The worldmap already has a routing service built in - if you turn on the drawing layer and draw a line between points, when you finish the line you have the option to route it instead, which will find the nearest road route and return the polyline for that.  
 ![JK95neHNT4](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/1/d161904cbbb886253b6fd66764dd2aae663ffe66.gif)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [8 July 2021 22:15 UTC](https://discourse.nodered.org/t/worldmap-navigation-lines-from-openrouteservice-delete-and-color/46740/3 "2021-07-08T22:15:34Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
