https://github.com/naturalatlas/tilestrata-mapnik
TileStrata provider for rendering tiles with mapnik.
https://github.com/naturalatlas/tilestrata-mapnik
Last synced: 7 months ago
JSON representation
TileStrata provider for rendering tiles with mapnik.
- Host: GitHub
- URL: https://github.com/naturalatlas/tilestrata-mapnik
- Owner: naturalatlas
- License: apache-2.0
- Created: 2014-12-13T12:13:53.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2020-09-23T22:12:51.000Z (about 5 years ago)
- Last Synced: 2025-04-24T03:46:50.649Z (7 months ago)
- Language: JavaScript
- Size: 1.27 MB
- Stars: 9
- Watchers: 6
- Forks: 10
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- Awesome-Geospatial - tilestrata-mapnik - TileStrata provider for rendering tiles with mapnik. (JavaScript)
- awesome-gis - tilestrata-mapnik - TileStrata provider for rendering tiles with mapnik. (Geospatial Library / JavaScript)
README
# tilestrata-mapnik
[](https://www.npmjs.org/package/tilestrata-mapnik)
[](https://travis-ci.org/naturalatlas/tilestrata-mapnik)
[](https://coveralls.io/r/naturalatlas/tilestrata-mapnik)
A [TileStrata](https://github.com/naturalatlas/tilestrata) plugin for rendering tiles with [mapnik](http://mapnik.org/). This package will use the latest version of [node-mapnik](https://github.com/mapnik/node-mapnik), unless it's already in your dependency tree (which allows you to pin it to a version if needed).
```sh
$ npm install tilestrata-mapnik --save
```
### Sample Usage
```js
var mapnik = require('tilestrata-mapnik');
server.layer('mylayer')
.route('tile.png').use(mapnik({
pathname: '/path/to/map.xml',
scale: 1,
tileSize: 256
})
.route('tile.json').use(mapnik({
xml: 'string of mapnik xml',
scale: 1,
tileSize: 256,
interactivity: true
}));
```
## Contributing
Before submitting pull requests, please update the [tests](test) and make sure they all pass.
```sh
$ npm test
```
## License
Copyright © 2014-2015 [Natural Atlas, Inc.](https://github.com/naturalatlas) & [Contributors](https://github.com/naturalatlas/tilestrata-mapnik/graphs/contributors)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.