Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

Qwant/thumbnail-gl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 63.9%
  • Shell 36.1%