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

How to use the opentopomap.json en vector directory? #352

Open
jlstanus opened this issue Oct 27, 2023 · 3 comments
Open

How to use the opentopomap.json en vector directory? #352

jlstanus opened this issue Oct 27, 2023 · 3 comments

Comments

@jlstanus
Copy link

How to use the opentopomap.json en vector directory?
I tried to use it in Mapbox or maptiler.
But the rendering is not working.
Could someone gives some information?

With QGIS and maptiler plugin, it worked partially.

@afgb1977
Copy link

afgb1977 commented Nov 24, 2023

You should change the vector URLs, the .json style is from a few years ago and some URLs (https://free.tilehosting...) have stopped working.
The easiest method is to use MapTiler, do the following=

  • Open a MapTiler account.
  • Copy the ApiKey.
  • Replace the free.tilehosting URLs with the corresponding MapTiler URLs. (in descending order v3-openmaptiles, hillshade and contours)

The identification of the layers is different in each provider, that is why the style works partially as you say.

To use the style OTM in MapBox the process is different and more complicated.

I attach my modified OpenTopoMap .json style to be used in OruxMaps, I added 3D, I will only omit my ApiKey MapTiler, you must put your own ApiKey MapTiler.

P.S. I want to take this space to ask the developer for a review and update of the json style, the style is fabulous but it has not had any changes in 5 years.

P.S.2. OpenTopoMap is the best topographic map I have used, I use 3 variants that accompany me every day: OTM online, json style and OTM .img. Thanks to the developers for continuing to work on it.

P.S.3. I see that OTM is being updated every month after the break since January. It is possible to add a lat/lon grid to the online site?.

OpenTopoMap.json

OTM-1
OTM-2

@osmuser63783
Copy link

In case anyone else is trying to get this to work, I've managed to in Maptiler Cloud, with the below file, based on the file by @afgb1977
OpenTopoMap fixed.json

But there are important differences to raster OTM. It looks good, but quite different, and it is based on the OpenMapTiles schema and doesn't have quite a few of the features that make OpenTopoMap what it is (e.g. valleys, mountain ranges, ...)

Screenshot 2024-10-26 at 00 13 05 Screenshot 2024-10-26 at 00 13 09

@afgb1977
Copy link

afgb1977 commented Nov 4, 2024

We'll have to take care of it ourselves, the json style hasn't been updated for a long time.
I will do some tests to achieve a similar appearance to the Raster OTM.
I found some errors in my first shared file. I have corrected them.
Can we hijack this thread to share results, suggestions, files or should we communicate through another means? (email, Telegram,...)

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