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

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

Open
pfbreton-perso opened this issue Jul 26, 2024 · 2 comments

Comments

@pfbreton-perso
Copy link

(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"?> <customMapSource overlay="true"> <name>CAN-Qc Sentiers Quad et FQMHR (Web Map Tiles)</name> <url>https://api.mapbox.com/styles/v1/pfbreton/clsl5rbra03up01p19f7ig9hv/tiles/512/{$z}/{$x}/{$y}?access_token=pk.eyJ1IjoiYWxsdHJhaWxzIiwiYSI6ImNqM293emo1YjAwZWQyd3FnaXh0eWsxeHkifQ.LeDD0X-JiWsJmDKeB0AS5w</url> </customMapSource>

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
Copy link

nevvkid commented Jul 26, 2024

@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
Copy link

zod commented Sep 25, 2024

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.

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

No branches or pull requests

3 participants