Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.05 KB

README.md

File metadata and controls

28 lines (20 loc) · 1.05 KB

Build Status Build status Coverage Status

node-tilejson

A javascript implementation of https://github.com/mapbox/tilejson-spec

install

npm install --save @mapbox/tilejson

API

This module mainly provides an API for use by tilelive: it implements methods that allow fetching of tiles and metadata given a TileJSON object.

Provides a metadata for online tile sources in json format.

Template

Following variables are replaced from URLs in order to get actual tiles:

  • {x} index on the x-axis
  • {y} index on the y-axis (direction depends on the scheme)
  • {z} zoom level
  • {bbox} bounding box in Spherical Mercator coordinates.