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

Hillshading and Contours issue. #11

Open
carlodenardin opened this issue Feb 3, 2022 · 1 comment
Open

Hillshading and Contours issue. #11

carlodenardin opened this issue Feb 3, 2022 · 1 comment

Comments

@carlodenardin
Copy link

carlodenardin commented Feb 3, 2022

For my own server I tried to add the style "Terrain" provided as open-source. But once I open the map with the correct style I'm not able to see the style in a properly way. It is flat. Maybe because hill shading and contours are not present in my mbtiles file.

Here I reported my style.json. I should change the url with something local.

"openmaptiles": {
      "type": "vector",
       "url": "mbtiles://{v3}"
    },
    "hillshading": {
      "type": "raster",
      "url": "https://klokantech.tilehosting.com/data/hillshades.json?key=tXme5cuqgrCqdPoZHqyn",
      "tileSize": 256
    },
    "contours": {
      "type": "vector",
      "url": "https://klokantech.tilehosting.com/data/contours.json?key=tXme5cuqgrCqdPoZHqyn"
    }
  },
  "glyphs": "{fontstack}/{range}.pbf"
}

Screenshot 2022-02-04 at 00 46 02

How can we solve this issue? We should import the hill shading and contours from the mbtiles right?

@TomPohys
Copy link
Member

TomPohys commented May 7, 2024

Yes, for your server, you need to add mbtiles for hillshade and mbtiles for contours. If you add your API key from MapTiler Cloud (please see the current version of style.json) you can use the hillshade and contours from MapTiler.

Every release has an asset (e.g. v1.8.zip) that includes a version for local hosing (style-local.json).

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

2 participants