Coder Social home page Coder Social logo

Comments (3)

tristangio avatar tristangio commented on August 17, 2024

Same question here : I tried to use this style with tileserver-gl-light.
What i did :

  • npm install -g tileserver-gl-light
  • copy osm-liberty.json to /usr/lib/node_modules/tileserver-gl-light/node_modules/tileserver-gl-styles/styles
  • copy all sprites from this repo to /usr/lib/node_modules/tileserver-gl-light/node_modules/tileserver-gl-styles/sprites

When i try osm-liberty I get this error in tileserver-gl-light :

GET /styles/osm-liberty.json 500 38.043 ms - 1151
TypeError: Cannot read property 'replace' of undefined
    at fixUrl (/usr/lib/node_modules/tileserver-gl-light/src/serve_style.js:76:17)
    at /usr/lib/node_modules/tileserver-gl-light/src/serve_style.js:83:20
    at Array.forEach (native)
    at /usr/lib/node_modules/tileserver-gl-light/src/serve_style.js:81:37
    at Layer.handle [as handle_request] (/usr/lib/node_modules/tileserver-gl-light/node_modules/express/lib/router/layer.js:95:5)
    at next (/usr/lib/node_modules/tileserver-gl-light/node_modules/express/lib/router/route.js:131:13)
    at Route.dispatch (/usr/lib/node_modules/tileserver-gl-light/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/usr/lib/node_modules/tileserver-gl-light/node_modules/express/lib/router/layer.js:95:5)
    at /usr/lib/node_modules/tileserver-gl-light/node_modules/express/lib/router/index.js:277:22
    at Function.process_params (/usr/lib/node_modules/tileserver-gl-light/node_modules/express/lib/router/index.js:330:12)

node --version = v6.9.3
I surely did something wrong or miss and important part, but I can't see what's missing

from osm-liberty.

lukasmartinelli avatar lukasmartinelli commented on August 17, 2024

@abenrob One problem you face for sure right now is that you don't have the vector tiles necessary for self hosting. The restyle now depends no longer on OSM2VectorTiles.

OpenMapTiles is the new source https://github.com/openmaptiles/openmaptiles which we will release beginning of next week - and then you can download the necessary vector tiles.

from osm-liberty.

abenrob avatar abenrob commented on August 17, 2024

Looking forward to it - thanks for the update!

from osm-liberty.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.