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

Map centred on the Pacific Ocean #777

Open
WouterRademaker opened this issue Mar 21, 2024 · 2 comments
Open

Map centred on the Pacific Ocean #777

WouterRademaker opened this issue Mar 21, 2024 · 2 comments

Comments

@WouterRademaker
Copy link

WouterRademaker commented Mar 21, 2024

Setup

  • Maps version: 10.1.2
  • MW version: 1.39.5
  • PHP version: 8.2.16 (fpm-fcgi)
  • SMW version: 4.1.3

Issue

On a map with coordinates on either side of the 180° meridian (International Date Line), they are plotted on the far left and right on a map centred on the Atlantic Ocean and not together on a map centred on the Pacific Ocean.
For example: {{#display_map:Tuvalu; Tokelau}}

image

The option of getting something like the second map would be nice. On static maps you can force it by adding 360 to negative longitudes, but that is not so easy for SMW-generated maps or maps based on place names.

Same problem with maps that use a geojson with coordinates on either side of the 180° meridian, you probably want them together on a map centred on the Pacific Ocean, but they are now plotted on the far left and right on a map centred on the Atlantic Ocean.

By the looks of it, the map service has no problem with latitudes greater than 180 degrees. So the problem can be solved if there is an option where western latitudes or negative latitudes are converted to eastern latitudes or positive latitudes in the range of 180 to 360 degrees before being sent to the map service.

@JeroenDeDauw
Copy link
Member

Is this a progression compared to an earlier version? It isn't, right?

@WouterRademaker
Copy link
Author

Don't know, I hadn't tried this in an earlier version.

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

No branches or pull requests

2 participants