Skip to content

digidem/mapeo-styles

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Default styles & tiles for mapeo backgrounds

Resources

Stars

Watchers

Forks

Packages

No packages published