gpxstudio / gpx.studio

the online GPX file editor
https://gpx.studio/
MIT License
199 stars 36 forks source link

[Improvement Suggestion] Ability to save / load custom layer configs #35

Open pfbreton-perso opened 3 months ago

pfbreton-perso commented 3 months ago

(This is probably not something that users request a lot but I thought I would suggest anyways - and I take no offense if its not considered a high priority..)

I assembled a collection of urls (layers) that are useful to create offroad itineraries that cannot be done by using the general purpose maps based on OSM. Right now I maintain a webpage with the URLS listed that I copy paste in GPX studio - and this is working just fine.

https://sites.google.com/view/gravel-roads-seeker/cartes-hors-route/cartes-online

Now, what I found is that sharing this information with others is a bit more involving for people who don't use computers much. So if we had a way to define a XML or JSON file that can setup the layers for other users, that would be great. This could work similarly to how Osmand or Gurumaps does it with OSF file or MS files:

An example of a config file for Gurumaps:

`<?xml version="1.0" encoding="UTF-8"?>

CAN-Qc Sentiers Quad et FQMHR (Web Map Tiles) https://api.mapbox.com/styles/v1/pfbreton/clsl5rbra03up01p19f7ig9hv/tiles/512/{$z}/{$x}/{$y}?access_token=pk.eyJ1IjoiYWxsdHJhaWxzIiwiYSI6ImNqM293emo1YjAwZWQyd3FnaXh0eWsxeHkifQ.LeDD0X-JiWsJmDKeB0AS5w ` An example of a config file for Osmand: ` "items": [ { "sql": false, "name": "Overlay - Gravel Roads (Web Map Tiles)", "minZoom": 1, "maxZoom": 19, "url": "https://api.mapbox.com/styles/v1/pfbreton/clu7hvac503vd01pb6ce1gatr/tiles/512/{z}/{x}/{y}?access_token=pk.eyJ1Ijoic3RyYXZhIiwiYSI6IlpoeXU2U0UifQ.c7yhlZevNRFCqHYm6G6Cyg", "ellipsoid": false, "inverted_y": false, "timesupported": false, "expire": -1, "inversiveZoom": false, "ext": ".png", "tileSize": 512, "bitDensity": 8, "avgSize": 18000 },`
nevvkid commented 3 months ago

@pfbreton-perso Interesting site. Actually some links / maps I didn't know yet. A good resource is also this site: https://qms.nextgis.com/

zod commented 1 month ago

brouter-web uses a GeoJSON based format (example) which is provided for a lot of maps by JOSM (https://josm.openstreetmap.de/wiki/Maps#Otherimportantinformation). It would be great if those layer configurations could be used for both.