Socket
Socket
Sign inDemoInstall

trailpack-mapnik

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trailpack-mapnik

Mapnik Tile Server with Trails.js


Version published
Maintainers
1
Created
Source

trailpack-mapnik

NPM version Build status Dependency Status Code Climate

Setup a Map Server using Trails, Mapnik, and Tilelive. Supports tile caching with S3.

Compatibility

  • Node 6 or higher
  • Mapnik 3.0.9 or higher (tested on 3.0.9)
  • OSX or Linux (binaries pre-built for linux and darwin platforms)

Install

$ npm install --save trailpack-mapnik

Configure

// config/main.js
module.exports = {
  packs: [
    // ... other trailpacks
    require('trailpack-mapnik')
  ]
}
// config/mapnik.js
const path = require('path')
module.exports = {
  /**
   * Define paths to mapnik map configs
   */
  maps: {
    basemap: {
      pathname: path.resolve(__dirname, 'basemap.xml')
    },
    someOverlay: {
      pathname: path.resolve(__dirname, 'vector_overlay.xml')
    }
  },
  /**
   * Additional Tilelive protocols (e.g. vector)
   */
  protocols: [
    require('tilelive-additionalplugin')
  ]
}

License

MIT

Maintained By

Keywords

FAQs

Package last updated on 24 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc