I want to display multiple lines between two coordinates. I will pass number of lines and color of the line, it has to display like below image.
please see the below image.this is my previous post
javascriptopenlayers-2
I want to display multiple lines between two coordinates. I will pass number of lines and color of the line, it has to display like below image.
please see the below image.this is my previous post
Best Answer
This demo takes in two coordinates and a color and will create a Geodesic line between them.
DEMO LINK
You can add lines by entering information into the form, OR programmatically like so:
This demo is based off of Mr. Wippermann great circle example.
Update per comment:
Simply comment out this line:
vectorLayer.addFeatures([pointFeature, pointFeature2]);
in the AddLine and AddLineProgrammatically functions if you don't want the markers.