Git Product home page Git Product logo

Comments (6)

nyurik avatar nyurik commented on May 25, 2024

Absolutelly! Technically you can already use it - by setting up your own labs instance with the fonts and js libs, and pointing it to the maps.wikimedia.org PBF files. We simply haven't had enough time to work on it, but patches are welcome :))

We need:

  • a well documented way to generate font PBF files (IIRC, we need to use node-fontnik or another Mapbox script)
  • Adapt Mapbox's GL style to use our tileset
  • evaluate if we have any large tiles (e.g. above 500kb for now), and reduce their size

from kartotherian.

benstadin avatar benstadin commented on May 25, 2024

I have created a small project to create a mapbox-gl-js package for own deployment. I have a very basic example working that just renders a GeoJSON (didn't have the time to try real vector tiles yet):
https://github.com/benstadin/mapbox-gl-js-packager

It should be almost complete, though I'll ask MapBox if it's possible to improve the resource location configuration and asset generation. It required some time to figure out how to create these assets and where to place them.

from kartotherian.

nyurik avatar nyurik commented on May 25, 2024

Thanks, looks interesting. I am not sure we can use the fonts this way - they might be copyrighted, so we would have to use just the fonts that are known to be free, and generate pbf files from them. There is some considerable work to be done, but its sure is going to be fun ))

from kartotherian.

sabas avatar sabas commented on May 25, 2024

For the font issue I wrote this, basing on existing code. I removed the gzipping part of the pbf because I couldn't configure apache correctly :-)
https://github.com/sabas/genfontgl
I played around with kartotherian serving pbfs on my remote server + local mapbox-gl-js

On the sprite issue I simply used the maki sprite made by mapbox, but to generate one by yourself is simple enough with spritezero https://github.com/mapbox/spritezero-cli

from kartotherian.

nyurik avatar nyurik commented on May 25, 2024

I added maki marker generation to the kartotherian - see readme.

from kartotherian.

leblowl avatar leblowl commented on May 25, 2024

For anyone interested, I was able to get a quick demo of mapbox-gl-js with kartotherian vector tiles by modifying this example: https://github.com/osm2vectortiles/mapbox-gl-js-example

from kartotherian.

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.