Ribbon color

3 posts / 0 new
Last post
tarouma
Ribbon color

Is there any way to change the ribbon color after it's drawn using the javascript api?

I want to change the color based on the time to complete the route.

 


MQBrianCoakley
Here's how I did it with the
Here's how I did it with the MapQuest JavaScript sdk v7.2.0: map.getShapeCollection("route-ribbon").ribbon.setColor("#00ee00");

tarouma
Awesome, just what I was

Awesome, just what I was looking for, thanks!