0.5.23 • Published 9 years ago

trailpack-mapnik v0.5.23

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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

0.5.23

9 years ago

0.5.21

9 years ago

0.5.20

9 years ago

0.5.19

9 years ago

0.5.18

9 years ago

0.5.17

9 years ago

0.5.16

9 years ago

0.5.15

9 years ago

0.5.13

10 years ago

0.5.12

10 years ago

0.5.11

10 years ago

0.5.10

10 years ago

0.5.8

10 years ago

0.5.9

10 years ago

0.5.7

10 years ago

0.5.6

10 years ago

0.5.4

10 years ago

0.5.1

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago