Giter Site home page Giter Site logo

map-sprite-packer's Introduction

Map Sprite Packer

Bundles SVG icons into a single PNG sprite and a lookup table (as JSON) for Maplibre/Mapbox. Mainly used with Nix for reproducible map styles.

Example

Building the sprites of osm-liberty.

git clone https://github.com/maputnik/osm-liberty
cd osm-liberty
nix run github:jmpunkt/map-sprite-packer -- --svgs svgs/svgs_iconset --svgs svgs/svgs_not_in_iconset --width 600 --height 500 --output out

The directory out contains the PNG and JSON files. Notice that there are two versions, one with scale 1.0 and one with scale 2.0.

Afterwards you might want to optimize the PNG.

map-sprite-packer's People

Contributors

jmpunkt avatar

Stargazers

Kayla Firestack avatar

Watchers

 avatar  avatar

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.