mapeo-styles
v3.0.2
Published
Default styles & tiles for mapeo backgrounds
Downloads
12
Keywords
Readme
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.
styles.FALLBACK_DIR_NAME
The directory name where presets are stored.
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