Skip to content
Default styles & tiles for mapeo backgrounds
CSS JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
presets/jungle
styles
test
.gitignore
README.md
index.js
package-lock.json
package.json

README.md

mapeo-styles

Default styles & tiles for mapeo backgrounds

Static resources for Mapeo Mobile & Desktop.

API

var styles = require('mapeo-styles')

styles.unpack(root, cb)

Unpacks the styles/ and presets/ directories to the file path root, and calls cb upon completion or error.

styles.unpackIfNew(root, cb)

The same as styles.unpack, except a version file will also be written to track what version of the style/preset data was unpacked. This lets the unpacking step be nearly zero-cost when the version of the data has not been changed.

Notes

  • 2018-06-22: For mobile platforms, this module is probably only useful for automatic loading of test data or very small data sets. With enough tile data (100s of megabytes) it may not fit into a reasonably sized app image.

License

ISC

You can’t perform that action at this time.