tumic0 / GPXSee-maps

GPXSee maps
https://maps.gpxsee.org
The Unlicense
33 stars 10 forks source link

Add maps from OpenStreetMap Switzerland #17

Closed MeisterP closed 5 years ago

MeisterP commented 5 years ago

See http://osm.ch/

tumic0 commented 5 years ago
  1. Defining a CRS for OSM maps makes no sense, it is always web mercator (EPSG:3857).
  2. For small region maps like in this case, the map bounds should be set to avoid "weird behaviour". Note: OSM maps bounds are broken in the latest release version (6.2), use the GIT master to test them (will be fixed in 6.3).

This is how the map definitions should look like:

<?xml version="1.0" encoding="UTF-8"?>
<map xmlns="http://www.gpxsee.org/map/1.1">
    <name>OSM Switzerland Swiss Style</name>
    <url>https://tile.osm.ch/osm-swiss-style/$z/$x/$y.png</url>
    <zoom min="6"/>
    <bounds left="5.8" right="10.6" bottom="45.7" top="47.9"/>
    <copyright>Map data: © OpenStreetMap contributors (ODbL) | Rendering: © Swiss OpenStreetMap Association, CC BY-SA</copyright>
</map>
MeisterP commented 5 years ago

I did update the pull request with the changes from your comment. The map bounds look good and do indeed work in current git master.

tumic0 commented 5 years ago

Well, the given bounds work even in the current and older versions of GPXSee, but it is easy to define a bounds rectangle, that does not work :-)

Looks good.