Skip to content

Instantly share code, notes, and snippets.

@JulieGoldberg
JulieGoldberg / DynamicLayersTileServer
Last active December 25, 2015 05:39
A decorator around the WSGITileServer that allows for custom tilestache configuration.
from TileStache import WSGITileServer, splitPathInfo
import re
#
# Decorator for the WSGITileServer that allows for custom tilestache configuration.
#
# Takes in a tilestache config file and a series of parameter names. Any that are present will be sent to the
# provider and the cache classes on each call.