WMTS
Flexible WMTS scheme for Javascript applications.
Install
npm
$ yarn add wmts
web browser (ES5)
Quickstart
const xml = wmts//=xml
1.0.0 OGC WMTS...
API
getCapabilities
Get Capabilities
Parameters
options
Options Optionsoptions.url
string URL of WMTS serviceoptions.title
string Title of serviceoptions.format
string Format 'png' | 'jpeg' | 'jpg'options.minzoom
number? Minimum zoom level (optional, default0
)options.maxzoom
number? Maximum zoom level (optional, default22
)options.accessConstraints
string? Access Constraintsoptions.fees
string? Feesoptions.abstract
string? Abstractoptions.identifier
string? Identifieroptions.keywords
Array<string>? Keywordsoptions.bbox
BBox? BBox [west, south, east, north]options.spaces
number? Spaces created for XML output (optional, default2
)
Examples
const xml = wmts
Returns string XML string