kartotherian/tilelive-vector

Name: tilelive-vector

Owner: kartotherian

Description: Implements the tilelive API for rendering mapnik vector tiles to raster images.

Created: 2017-04-02 07:45:28.0

Updated: 2018-03-16 15:07:54.0

Pushed: 2018-03-16 15:07:52.0

Homepage: null

Size: 9395

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

tilelive-vector

Implements the tilelive API for rendering mapnik vector tiles to raster images.

Build Status Build status Coverage Status

new Vector(options, callback)
Code concepts
Backend headers

The Backend and Vector sources set the x-vector-backend-object header to indicate the type of backend source tile loaded. Possible values:

value | description — | — empty | backend returned no tile fillzoom | tile from the fillzoom of the backend (backfilled from a lower zoom) overzoom | tile from the maxzoom of the backend (overzoomed) default | normal tile

Bonus constructors

There are two additional constructors provided for slightly different workflows for loading vector sources.

Vector.tm2z(uri, callback)

Load a vector source from a uri (filepath or HTTP url) to a tm2-generated tm2z style package.

Vector.xray(options, callback)

Load a vector source with autogenerated data inspection (“xray”) styles. xml is not required – only the uri to a vector source backend is necessary.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.