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

[Bug] Half the airports not visible near dateline [sf#2] #2

Open
jpatokal opened this issue Jun 5, 2015 · 3 comments
Open

[Bug] Half the airports not visible near dateline [sf#2] #2

jpatokal opened this issue Jun 5, 2015 · 3 comments

Comments

@jpatokal
Copy link
Owner

@jpatokal jpatokal commented Jun 5, 2015

Reported by jpatokal on 2008-08-15 14:48 UTC
If the map is panned so that the view overlaps the International Date Line, airports are visible only on the larger of the two halves. For example, if you center on a NRT-SFO flight, you can see NRT or SFO, but not both.

@jpatokal jpatokal changed the title Half the airports not visible near dateline [Bug] Half the airports not visible near dateline [sf#2] Jun 6, 2015
@jpatokal
Copy link
Owner Author

@jpatokal jpatokal commented Jun 6, 2015

Commented by jpatokal on 2008-08-15 14:50 UTC
Logged In: YES
user_id=481307
Originator: YES

This is an OpenLayers date line wrapping artifact. Unfortunately, at least in OL 2.6, the hack used to fix this for Vectors (flight lines), namely drawing a duplicate at -360 and +360, does not work for Markers (airports).

@jpatokal
Copy link
Owner Author

@jpatokal jpatokal commented Jun 6, 2015

Commented by jpatokal on 2009-12-01 22:08 UTC
Might be possible to fix this now that OF airport icons have been migrated from Markers to Vectors...

@jpatokal
Copy link
Owner Author

@jpatokal jpatokal commented Jun 6, 2015

Commented by blakecrosby on 2012-01-11 03:32 UTC
This could be fixed by adding 360 degrees to your points... for example:

var point = new OpenLayers.Geometry.Point(x+360, y);

It works for me in my own code, just thought that I would pass this along.. see:
http://osgeo-org.1803224.n2.nabble.com/Vector-points-over-the-dateline-td5478314.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant