Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Debug tiles to overlay in systems that consume XYZ tiles

License

Notifications You must be signed in to change notification settings

blacha/xyz-tile-debug

Repository files navigation

Debug XYZ tile server

Generates debug tiles to overlay in systems that consume XYZ tiles

Example Tile

Format

Images are output with a red border, QuadKey and XYZ tile information

X, Y
QuadKey
Zoom

Usage

npm i -g xyz-tile-debug

xyz-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 > 12 & Yarn

Use n to manage nodeJs versions

# 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

PORT=1234 yarn run start

About

Debug tiles to overlay in systems that consume XYZ tiles

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •