Comments (6)
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.
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.
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.
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.
I added maki marker generation to the kartotherian - see readme.
from kartotherian.
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)
- Support no-scaling mode
- Mapbox GL HOT 2
- Using Tilerator in the real world HOT 5
- Invalid zoom param - an integer zoom value was expected HOT 2
- Medium severity vulnerability affecting this repo HOT 1
- Discussion: docker packaging, upgrading to latest dependencies HOT 4
- Revert merging of the forked repos HOT 4
- Independencies installation failed HOT 2
- Tilerator performance HOT 1
- Generation job immediate finish HOT 2
- Some jobs of tilerator are invalid
- Support Node.js 10+ HOT 1
- Docker building HOT 2
- 429 status code response when using leaflet map with zoom >= 10 HOT 6
- Archive the project? HOT 1
- Refactor configuration system HOT 1
- Support env variables in config HOT 1
- checkType returns false after setting default value of field HOT 1
- sort hangs if sortFiles gets an empty list HOT 1
- Airbnb eslint rules hard-code es6 rules and are unable to disable it HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kartotherian.