Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Use tileserver-gl to serve raster tiles with the same mapbox-GL json style format #10

Open
amatissart opened this issue Oct 26, 2017 · 0 comments

Comments

@amatissart
Copy link
Contributor

tileserver-gl achieves exactly that (based on node-js mapbox-gl-native)

tileserver-gl config :

{
  "styles":{
    "<myStyleName>": {
       "style": "path/to/mapbox-gl-style.json"
    }
  }
}

kartotherian source :

osm-intl: 
  uri: http://localhost:8080/styles/<myStyleName>/{z}/{x}/{y}.png
  public: true
  formats: [png]
  scales: [1.3, 1.5, 2, 2.6, 3]
  static: true
  maxheight: 2048
  maxwidth: 2048

BUT
Some parameters are not applied in the upstream "uri" (e.g scale "@2x" does not work)

Solution 1 : Patch tilelive-http to apply scale from callback.scale.
cf https://github.com/mojodna/tilelive-http/blob/040d70020e561d19e1ae19187beb295d019eb730/index.js#L122

Solution 2 : Create a proper source protocol (alternative to tilelive-vector) to serve raster tiles using tileserver-gl.

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

No branches or pull requests

1 participant