0.0.13 • Published 10 months ago

@mapbox/makiwich v0.0.13

Weekly downloads
37
License
ISC
Repository
-
Last release
10 months ago

Makiwich

Composites Maki icons with a map marker and returns an SVG.

npm.io

Install

npm install @mapbox/makiwich --save

Usage

var makiwich = require('@mapbox/makiwich');
var mapnik = require('mapnik');

makiwich.generateMarker({
    tint: '#454545',
    symbol: 'zoo', // Valid Maki v2.1.0 icon
    size: 'l' // `s` or `l`
}, (err, svg) => {
    if (err) throw err;

    // Use mapnik to convert the SVG to a PNG and save it
    var s = new mapnik.Image.fromSVGBytesSync(new Buffer(svg), { scale: 2 });
    s.premultiplySync();
    s.saveSync(`zoo.png`);
});
0.0.13

10 months ago

0.0.13-dev

1 year ago

0.0.12

3 years ago

0.0.12-dev

3 years ago

0.0.11

3 years ago

0.0.11-dev

3 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.9-0

4 years ago

0.0.8

4 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago