Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blacha/xyz-tile-debug
Debug tiles to overlay in systems that consume XYZ tiles
https://github.com/blacha/xyz-tile-debug
nodejs tile xyz
Last synced: about 18 hours ago
JSON representation
Debug tiles to overlay in systems that consume XYZ tiles
- Host: GitHub
- URL: https://github.com/blacha/xyz-tile-debug
- Owner: blacha
- License: mit
- Created: 2019-07-11T22:23:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T17:57:23.000Z (almost 2 years ago)
- Last Synced: 2024-05-28T22:01:10.272Z (8 months ago)
- Topics: nodejs, tile, xyz
- Language: TypeScript
- Homepage:
- Size: 1.78 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Debug XYZ tile server
Generates debug tiles to overlay in systems that consume XYZ tiles
![Example Tile](static/example.tile.png)
## Format
Images are output with a red border, QuadKey and XYZ tile information
```
X, Y
QuadKey
Zoom
```# Usage
```
npm i -g xyz-tile-debugxyz-tile-debug
open http://localhost:8855/v1/tiles/WebMercatorQuad/10/10/10.png
open http://localhost:8855/v1/wmts/WMTSCapabilities.xml
```or with docker
```
docker run -it -p 8855:8855 blacha/xyz-tile-debug
open http://localhost:8855/v1/tiles/WebMercatorQuad/10/10/10.png
open http://localhost:8855/v1/wmts/WMTSCapabilities.xml
```# Building
This requires [NodeJs](https://nodejs.org/en/) > 12 & [Yarn](https://yarnpkg.com/en/)
Use [n](https://github.com/tj/n) to manage nodeJs versions
```bash
# Download the latest nodejs & yarn
n latest
npm install -g yarn# Install node deps
yarn# Build everything into /build
yarn run build# Run the unit tests
yarn run test# Start the server
yarn run start
```The server will start on a random port `8855`, this can be configured using the `PORT` environment variable
```shell
PORT=1234 yarn run start
```