Code Monkey home page Code Monkey logo

cartago-styles's People

Contributors

otsaloma avatar rinigus avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

rinigus

cartago-styles's Issues

Missing icons, probably POI3

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.

Default Mapbox GL font is 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.

Merge Noto fonts into one

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.

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.