Skip to content

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

Description

@jpatokal

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.

Activity

  1. changed the title [-]Half the airports not visible near dateline[/-] [+][Bug] Half the airports not visible near dateline [sf#2][/+] on Jun 6, 2015
  2. jpatokal commented on Jun 6, 2015

    @jpatokal
    OwnerAuthor

    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).

  3. jpatokal commented on Jun 6, 2015

    @jpatokal
    OwnerAuthor

    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...

  4. jpatokal commented on Jun 6, 2015

    @jpatokal
    OwnerAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions