javascript - Draw lines on bing map with different colors -


i want draw 2 lines (directions) on bing map want each direction line in different color. there way set line color?

yes, easy. when create polyline can set options on it. 1 of them stroke color. here simple code sample make polyline that's blue:

var line = new microsoft.maps.polyline([your points],  {strokecolor: new microsoft.maps.color(150,0,0 255)}); 

you can find documentation polyline class , options here:

https://msdn.microsoft.com/en-us/library/gg427597.aspx

https://msdn.microsoft.com/en-us/library/gg427595.aspx

you can find samples on bing maps interactive sdk here:

https://www.bingmapsportal.com/isdk/ajaxv7#shapes2


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -