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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Implements the tilelive API for rendering mapnik vector tiles to raster images.
tilelive.load()
. This is fallback source that will be used if no source is found as part of the Mapnik XML parameters.__dirname
.png8:m=h
.1
.bz/bx/by
and generally represent the same or lower zoom level. This allows for features like overzooming, maskLevel tiles, and scale factor adjustment.maxzoom
of the backend is requested, Vector will attempt to render the tile using the parent of the request at maxzoom
.maskLevel
. If a vector tile is not initially found at some z > maskLevel
, Vector will issue an additional request to the backend using the parent tile of of the request at maskLevel
. This allows a lower zoom level to “backfill” high zoom levels.scale: 2
decrements bz
by 1, scale: 4
decrements by 2, and so on.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
There are two additional constructors provided for slightly different workflows for loading vector sources.
Load a vector source from a uri
(filepath or HTTP url) to a tm2-generated tm2z style package.
Load a vector source with autogenerated data inspection (“xray”) styles. xml
is not required – only the uri
to a vector source backend is necessary.