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
});
-
Notifications
You must be signed in to change notification settings - Fork 4
a simple static + canvas map preview
License
mapbox/static-map-preview
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
a simple static + canvas map preview