static-map-preview

0.1.1 • Public • Published

static-map-preview

example

var preview = require('static-map-preview')(d3)('mapbox.map-id');
 
                        // GeoJSON      w,   h
preview(geoJsonObject, [200, 200], function(err, res) {
    // err is an error, if any
    // res is image data as a data url
});

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i static-map-preview

    Weekly Downloads

    5

    Version

    0.1.1

    License

    BSD

    Last publish

    Collaborators

    • mapbox-admin