0.0.13 • Published 2 years ago

@mapbox/makiwich v0.0.13

Weekly downloads
37
License
ISC
Repository
-
Last release
2 years 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

2 years ago

0.0.13-dev

2 years ago

0.0.12

4 years ago

0.0.12-dev

4 years ago

0.0.11

4 years ago

0.0.11-dev

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.9-0

5 years ago

0.0.8

5 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago