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

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

Projects

None yet

1 participant

@jpatokal
Owner
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 from Half the airports not visible near dateline to [Bug] Half the airports not visible near dateline [sf#2] Jun 6, 2015
@jpatokal
Owner
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
Owner
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
Owner
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