LineString breaks at World Map Start and End
warlockdn opened this issue · 0 comments
warlockdn commented
I have this Map with Openlayers 2. I am trying to create a line which starts from West US to China through waterways.
I have passed the coordinates but the lines don't join at ends. Please see the image
Expected Result should be this
Not sure why this happens. Can you advise.
Creating map with
new OpenLayers.Layer.OSM({wrapDateLine: false});
map = new OpenLayers.Map('map', {
projection: "EPSG:4326",
controls: [new OpenLayers.Control.OverviewMap(), new OpenLayers.Control.Navigation({ zoomWheelEnabled: true })],
minExtent: new OpenLayers.Bounds(-1, -1, 1, 1),
maxExtent: new OpenLayers.Bounds(-180, -90, 180, 90),
});