{"id":16919773,"url":"https://github.com/deniscarriere/wmts","last_synced_at":"2025-04-11T16:40:19.008Z","repository":{"id":66096829,"uuid":"72211934","full_name":"DenisCarriere/wmts","owner":"DenisCarriere","description":"WMTS scheme for Javascript applications","archived":false,"fork":false,"pushed_at":"2017-09-01T19:50:36.000Z","size":334,"stargazers_count":7,"open_issues_count":4,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T12:51:06.945Z","etag":null,"topics":["gis","javascript-applications","ogc","wmts"],"latest_commit_sha":null,"homepage":"https://npm.runkit.com/wmts","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DenisCarriere.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-10-28T13:55:58.000Z","updated_at":"2020-07-19T08:52:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"58846c29-3af6-4374-bdf6-0964259e46d5","html_url":"https://github.com/DenisCarriere/wmts","commit_stats":{"total_commits":82,"total_committers":1,"mean_commits":82.0,"dds":0.0,"last_synced_commit":"200b4c9fae592b74f72b5fb7b8e56150a3a6670e"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DenisCarriere%2Fwmts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DenisCarriere%2Fwmts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DenisCarriere%2Fwmts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DenisCarriere%2Fwmts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DenisCarriere","download_url":"https://codeload.github.com/DenisCarriere/wmts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248441992,"owners_count":21104113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gis","javascript-applications","ogc","wmts"],"created_at":"2024-10-13T19:45:36.642Z","updated_at":"2025-04-11T16:40:18.989Z","avatar_url":"https://github.com/DenisCarriere.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WMTS\n\n[![Build Status](https://travis-ci.org/DenisCarriere/wmts.svg?branch=master)](https://travis-ci.org/DenisCarriere/wmts)\n[![npm version](https://badge.fury.io/js/wmts.svg)](https://badge.fury.io/js/wmts)\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/DenisCarriere/wmts/master/LICENSE)\n\n\u003c!-- Line Break --\u003e\n\n[![Standard - JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\n\u003e Flexible WMTS scheme for Javascript applications.\n\n## Install\n\n**npm**\n\n```bash\n$ yarn add wmts\n```\n\n**web browser ([ES5](https://kangax.github.io/compat-table/es5))**\n\n```html\n\u003cscript src=\"https://unpkg.com/wmts/docs/wmts.min.js\"\u003e\u003c/script\u003e\n```\n\n## Quickstart\n\n```javascript\nconst xml = wmts.getCapabilities({\n  url: 'http://localhost:5000/WMTS',\n  title: 'Tile Service XYZ',\n  format: 'png',\n})\n//=xml\n```\n\n```xml\n\u003cdeclaration version=\"1.0\" encoding=\"utf-8\"/\u003e\n\u003cCapabilities xmlns=\"http://www.opengis.net/wmts/1.0\" xmlns:ows=\"http://www.opengis.net/ows/1.1\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:gml=\"http://www.opengis.net/gml\" xsi:schemaLocation=\"http://www.opengis.net/wmts/1.0 http://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd\" version=\"1.0.0\"\u003e\n  \u003cServiceMetadataURL xlink:href=\"http://localhost:80/WMTS/1.0.0/WMTSCapabilities.xml\"/\u003e\n  \u003cows:ServiceIdentification\u003e\n    \u003cows:ServiceTypeVersion\u003e1.0.0\u003c/ows:ServiceTypeVersion\u003e\n    \u003cows:ServiceType\u003eOGC WMTS\u003c/ows:ServiceType\u003e\n...\n```\n\n## API\n\n\u003c!-- Generated by documentation.js. Update this documentation by updating the source code. --\u003e\n\n### getCapabilities\n\nGet Capabilities\n\n**Parameters**\n\n-   `options` **Options** Options\n    -   `options.url` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** URL of WMTS service\n    -   `options.title` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** Title of service\n    -   `options.format` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** Format 'png' | 'jpeg' | 'jpg'\n    -   `options.minzoom` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)?** Minimum zoom level (optional, default `0`)\n    -   `options.maxzoom` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)?** Maximum zoom level (optional, default `22`)\n    -   `options.accessConstraints` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)?** Access Constraints\n    -   `options.fees` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)?** Fees\n    -   `options.abstract` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)?** Abstract\n    -   `options.identifier` **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)?** Identifier\n    -   `options.keywords` **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)\u0026lt;[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)\u003e?** Keywords\n    -   `options.bbox` **BBox?** BBox [west, south, east, north]\n    -   `options.spaces` **[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)?** Spaces created for XML output (optional, default `2`)\n\n**Examples**\n\n```javascript\nconst xml = wmts.getCapabilities({\n  url: 'http://localhost:5000/WMTS',\n  title: 'Tile Service XYZ',\n  identifier: 'service-123',\n  abstract: '© OSM data',\n  keyword: ['world', 'imagery', 'wmts'],\n  format: 'png',\n  minzoom: 10,\n  maxzoom: 18,\n  bbox: [-180, -85, 180, 85]\n})\n```\n\nReturns **[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String)** XML string\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeniscarriere%2Fwmts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeniscarriere%2Fwmts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeniscarriere%2Fwmts/lists"}