GithubHelp home page GithubHelp logo

vmaxtacular / maki Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mapbox/maki

0.0 2.0 0.0 68.95 MB

POI Icon Set

Home Page: http://mapbox.com/maki

License: Creative Commons Zero v1.0 Universal

JavaScript 100.00%

maki's Introduction

Circle CI

Maki

A pixel-aligned point of interest icon set made for cartographers.

This repo only contains the source SVG files. Check out maki website to use an icon editing tool and read detailed design guidelines.

Format

  • Source icons are in the SVG file format.
  • Icons are available in two sizes: 11px x 11px and 15px x 15px.
  • Icons are each a single unified SVG path, with no transforms, groups or strokes.

Contributing

Maki welcomes contributions from designers who need icons for specific points of interest. Check out the design guidelines before submitting a pull request. Pull requests will only be merged if all tests pass.

Testing

Every icon in Maki must pass the automated tests in tests/maki.test.js. These tests check the following:

  • Filename must end with '-11.svg' or '-15.svg'.
  • SVG file cannot contain the following elements: rectangle, circle, ellipse, line, polyline, polygon.
  • SVG file cannot contain transformed groups or paths.
  • Both height and width must equal 11 or 15, and height and width must be equal.
  • Height, width, and viewbox must use pixel units.

For developers

Maki is ready to be used by developers. Install Maki via NPM:

npm install maki --save

The maki module exports two properties: dirname which just points to the directory that contains icons, and then layouts which is an object that can be used to organize and display icons in your app or website. Here's an example usage in Node.js:

var maki = require('maki');

files.forEach(function(fileName, j) {
  maki.layouts.all.forEach(function(icon) {
    fs.readFile(maki.dirname + '/icons/' + icon + '-11.svg', 'utf8', function(err, file) {
      // Read icons as strings in node
      console.log(file);
    });
  });
});

Note about branches

The main branch for the Maki project is master. The old version of Maki still exists in the mb-pages branch, which must remain intact because a number of old Mapbox projects depend on files it serves from its www/ directory.

maki's People

Contributors

samanpwbb avatar tatsvc avatar ajashton avatar jfirebaugh avatar williamscraigm avatar tmcw avatar wrynearson avatar tristen avatar natslaughter avatar katydecorah avatar ianshward avatar willwhite avatar ryantroyford avatar emilymdubois avatar christoph-buente avatar amyleew avatar zachbeattie avatar yhahn avatar lyzidiamond avatar incanus avatar ansis avatar xorgy avatar dkniffin avatar heyitsgarrett avatar friedbunny avatar edenh avatar aaronlidman avatar ivansanchez avatar miccolis avatar meghanhade avatar

Watchers

James Cloos avatar Veronica 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.