tumic0 / GPXSee-maps

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

OpenStreetMap Vector Basemap (Esri) #59

Closed sikmir closed 2 years ago

sikmir commented 2 years ago

Esri introduced OpenStreetMap Vector Basemap, freely available to any user or developer. I've tried the following:

<?xml version="1.0" encoding="UTF-8"?>
<map xmlns="http://www.gpxsee.org/map/1.4">
        <name>OpenStreetMap Vector Basemap</name>
        <url>https://basemaps.arcgis.com/arcgis/rest/services/OpenStreetMap_v2/VectorTileServer/tile/$z/$x/$y.pbf</url>
        <tile type="vector" size="512"/>
        <copyright>© Esri, © OpenStreetMap</copyright>
</map>

But it doesn't work. Any ideas?

tumic0 commented 2 years ago

There are two issues:

  1. Your map definition has the x and y coordinates switched
  2. You need (yet another) special style for the map

I have fixed the map definition and commited it here as well as put the Esri style to the QtPBFImagePlugin-styles repository. There is still one issue with the map - some POI labels are rendered broken which indicates that the map features do not have globally unique IDs (same problem as with the Ordnance Survey maps), but I have not yet checked that.

sikmir commented 2 years ago

Thanks! The map looks really nice.