@fabrix/spool-mapnik
TypeScript icon, indicating that this package has built-in type declarations

1.6.11 • Public • Published

spool-mapnik

Gitter NPM version Build Status Test Coverage Dependency Status Follow @FabrixApp on Twitter

Setup a Map Server using Fabrix, 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 spool-mapnik

Configure

// config/main.ts
import { MapnikSpool } from '@fabrix/spool-mapnik'
export const main = {
  spools: [
    // ... other spools
    MapnikSpool
  ]
}
// config/mapnik.ts
const path = require('path')
export const mapnik = {
  /**
   * 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

Dependents (0)

Package Sidebar

Install

npm i @fabrix/spool-mapnik

Homepage

fabrix.app

Weekly Downloads

1

Version

1.6.11

License

MIT

Unpacked Size

36.6 kB

Total Files

39

Last publish

Collaborators

  • scottbwyatt