Sign inSign up

klokantech/thumbnail-gl

By klokantech

•Updated over 8 years ago

Easily creates thumbnails from GL JSON style

Image
1

3.3K

klokantech/thumbnail-gl repository overview

⁠thumbnail-gl

Simple tool for generating preview raster images for styles.

The tool generates 3 images:

  • thumbnail.png -- 512x512, whole world
  • preview-2.png -- 640x360, image with zoom level 2 (centered on Zurich)
  • preview-10.png -- 640x360, image with zoom level 10 (centered on Zurich)
  • custom.png -- custom image (if specified in the second parameter)

⁠Usage

docker run -v $(pwd):/data klokantech/thumbnail-gl {JSON_URL} [{CUSTOM_AREA_SPEC}]

⁠Example

docker run -v $(pwd):/data klokantech/thumbnail-gl https://maps.tilehosting.com/styles/topo/style.json?key=[key] "-x 8.235 -y 46.787 -z 7 -w 800 -h 600 -r 2"

⁠thumbnail.png

thumbnail

⁠preview-2.png

preview-2

⁠preview-10.png

preview-10

⁠custom.png

custom

Tag summary

Content type

Image

Digest

Size

130.1 MB

Last updated

over 8 years ago

docker pull klokantech/thumbnail-gl