Support » Plugin: LocateAndFilter » BUG: wraparound the world

  • getiem


    On the admin page you can add a marker. When the map is zoomed out to far (you can see all continents multiple times) , and then zoomed in, you can zoom in on the earth wrapped around (zoom in on the continent, eg Europe, 2x east).

    The coordinates that are then retrieved by the function “Get the marker” are not corrected for the wrapped around world.
    50.064191736659104 -365.97656249999994

    The coordinates that are saved, are not within bounds of the earth, and are not displayed on the map on your website (public part).

    To avoid this, longitudes need to be adjusted to be > 180 or < -180
    To prevent saving these wrong coordinates, change the function for “Get the marker” (eg correct with + or – 360 * wraps around the world.)
    50.064191736659104 -5.9765625

  • You must be logged in to reply to this topic.