ProfessionalWiki / Maps

🗺 Maps is the MediaWiki extension that enables visualization of geographic data with dynamic embedded maps.
https://maps.extension.wiki
Other
73 stars 61 forks source link

Map centred on the Pacific Ocean #777

Open WouterRademaker opened 7 months ago

WouterRademaker commented 7 months ago

Setup

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 commented 7 months ago

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

WouterRademaker commented 7 months ago

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