Issue 18161

Maps showing countries which straddle the 180° longitude line don't centre

18161
Reporter: mblissett
Assignee: mblissett
Type: Bug
Summary: Maps showing countries which straddle the 180° longitude line don't centre
Priority: Minor
Resolution: Fixed
Status: Closed
Created: 2016-01-18 15:50:01.087
Updated: 2016-08-02 12:16:56.497
Resolved: 2016-08-02 12:16:56.033
        
Description: Maps of countries which straddle the 180° line don't automatically centre in the same way as other maps.

Examples: Kiribati, United States, Russia.

http://www.gbif.org/country/KI/summary
http://www.gbif.org/country/US/summary
http://www.gbif.org/country/RU/summary]]>
    


Author: mblissett
Created: 2016-08-01 17:45:15.994
Updated: 2016-08-01 17:45:15.994
        
[~trobertson@gbif.org], perhaps:

https://github.com/gbif/tile-server/commit/f3dfbd451c10435e9fe36982a3ecdb0d164afe26 corrects this, except I don't know how the minified Javascript is regenerated.

http://api.gbif-dev.org/v1/map/index.html?type=COUNTRY&key=FJ (without the changed Javascript it's not properly centred, and would fail badly for US/RU if more data was in Dev.)
    


Author: trobertson@gbif.org
Comment: It's documented on https://github.com/gbif/tile-server/tree/master/frontend (running it now and will commit so you can confirm it on dev)
Created: 2016-08-02 11:21:58.656
Updated: 2016-08-02 11:21:58.656


Author: trobertson@gbif.org
Created: 2016-08-02 11:40:08.555
Updated: 2016-08-02 11:40:22.735
        
See https://github.com/gbif/tile-server/commit/f5de5b822a2eda5f01cab2dff96cd4e3bdc19ca9

[~mblissett] Can you please test on dev and close if fixed?