Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LineString breaks at World Map Start and End #1506

Open
warlockdn opened this issue Nov 4, 2016 · 0 comments
Open

LineString breaks at World Map Start and End #1506

warlockdn opened this issue Nov 4, 2016 · 0 comments

Comments

@warlockdn
Copy link

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

openlayerss

Expected Result should be this

openlayers2

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),    
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant