Skip to content
Settings for Mapeo
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.
test
.gitignore
.travis.yml
README.md
index.js
package.json

README.md

@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

You can’t perform that action at this time.