otsaloma / cartago-styles Goto Github PK
View Code? Open in Web Editor NEWMap styles for vector maps
License: MIT License
Map styles for vector maps
License: MIT License
When working on native Mapbox GL client, I observed that labels disappear at higher zooms at Cartago. Later I found the same when working on OSM Scout Server. Turned out that some icons were missing in the sprite leading to such bug in Mapbox GL Native. While this bug/feature has been fixed in 1.2.0 version of Mapbox GL Qt bindings (can't use them yet due to other issues), it highlights that some icons are missing. For now, I fixed it in OSM Scout Server by limiting POI ranks ( https://github.com/rinigus/osmscout-server/blob/master/styles/mapboxgl/styles/osmbright.json#L3735 ). But, I guess, we better find what's missing.
When you create a new POI object on a map within the application, the default fonts are used by Mapbox GL, unless you specify them. If the application is developed against only one provider, we can find which font to use and specify it in the app. However, issues appear as soon as you start developing against multiple basemaps and allow users to swap them. To avoid the issues, we need to either add default fonts (https://www.mapbox.com/mapbox-gl-js/style-spec/#layout-symbol-text-font, ["Open Sans Regular","Arial Unicode MS Regular"]) or let the server to supply some alternative. In OSM Scout Server, I am providing Open Sans Regular and backing it with Noto fonts. How to do it exactly with the tileserver, I don't know. In particular, I don't know whether requested URL that comes in form
... Open Sans Regular,Arial Unicode MS Regular ...
is split into parts and whether tileserver searches for each of the fonts separately. From that it will depend on how to add the default font to the server.
I have written some scripts that allow to merge Noto fonts into a single font (regular + CJK). That would simplify writing of the styles since only one font needs to be mentioned. The scripts are available at https://github.com/rinigus/mapbox-gl-fonts . At present, they populate SQLite database. However, we can rewrite them for dumping glyphs into pbf files, as it is done usually. For me, SQLite was better due to simplicity of its upload/download and use.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.