mapeo-styles

3.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i mapeo-styles

Weekly Downloads

1

Version

3.0.2

License

ISC

Unpacked Size

264 kB

Total Files

6

Last publish

Collaborators

  • andrew_chou
  • substack
  • karissa
  • digidem-admin
  • gmaclennan
  • noffle