Skip to content

Instantly share code, notes, and snippets.

@ampledata
Last active August 3, 2018 07:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ampledata/48b982196ffb9aa21c6ddc79863ce3c0 to your computer and use it in GitHub Desktop.
Save ampledata/48b982196ffb9aa21c6ddc79863ce3c0 to your computer and use it in GitHub Desktop.
services:
demo:
tms:
use_grid_names: true
origin: 'nw'
wmts:
layers:
- name: combined_layer
title: osm + osl
sources: [combined_cache]
caches:
combined_cache:
meta_buffer: 0
meta_size: [1, 1]
grids: [webmercator]
sources: [osm_cache, osl_cache]
osm_cache:
meta_buffer: 0
meta_size: [1, 1]
sources: [osm]
grids: [webmercator]
osl_cache:
meta_buffer: 0
meta_size: [1, 1]
grids: [webmercator]
sources: []
format: custom_format
cache:
type: file
directory: /mapproxy/osl/
directory_layout: tms
sources:
osm:
type: tile
grid: GLOBAL_WEBMERCATOR
url: http://a.tile.openstreetmap.org/%(z)s/%(x)s/%(y)s.png
transparent: true
grids:
webmercator:
base: GLOBAL_WEBMERCATOR
globals:
image:
formats:
custom_format:
format: image/png
mode: P
transparent: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment