maptiler-terrain-gl-style icon indicating copy to clipboard operation
maptiler-terrain-gl-style copied to clipboard

Hillshading and Contours issue.

Open carlodenardin opened this issue 3 years ago • 2 comments

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?

carlodenardin avatar Feb 03 '22 23:02 carlodenardin

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).

TomPohys avatar May 07 '24 06:05 TomPohys