Skip to content

digidem/mapeo-settings

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

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

@mapeo/settings

Settings manager for Mapeo.

Build Status

npm install @mapeo/settings

Usage

var Settings = require('@mapeo/settings')

var settings = new Settings(userDataPath)
settings.importSettings(settingsFile, function (err) {
  if (err) throw err
  console.log('Settings imported!')
  var presets = settings.getSettings('presets')
  var icons = settings.getSettings('icons')
  //etc..
})

API

instance.getSettings(type)

One of 'css', 'icons', 'presets', 'imagery', or 'metadata'.

instance.getEncryptionKey()

Shorthand for getting the projectKey from the metadata.

Creating a Mapeo Settings file

See Mapeo Settings Builder

License

MIT

About

Settings for Mapeo

Resources

Stars

Watchers

Forks

Packages

No packages published