I want to display multiple polylines with different colors in openlayers. Can any one guide me regarding this.
I have done this in google maps. but i don't know how to do it in openlayers. I am newbie to Openlayers.

|
I want to display multiple polylines with different colors in openlayers. Can any one guide me regarding this. I have done this in google maps. but i don't know how to do it in openlayers. I am newbie to Openlayers.
|
||||
|
|
|
Every feature has a style property which is null by default because it inherits the parent vector layer's style. But you can set the style for each feature: DEMO
Code Example:
If you change the styles of the features after they've been added to the layer you must call |
|||||||
|
This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.