openmaptiles / maptiler-terrain-gl-style

A base map ideal for outdoor activities featuring hill shading and contour lines
Other
73 stars 22 forks source link

Hillshading and Contours issue. #11

Open carlodenardin opened 2 years ago

carlodenardin commented 2 years ago

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 commented 4 months ago

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