From c843a5037e2ba55aa5be89c598ac98aa6c7a551c Mon Sep 17 00:00:00 2001 From: Robert Marianski Date: Tue, 12 Aug 2014 11:49:17 -0400 Subject: [PATCH] default to empty string for oscimap too --- TileStache/Goodies/VecTiles/oscimap.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TileStache/Goodies/VecTiles/oscimap.py b/TileStache/Goodies/VecTiles/oscimap.py index fb9f585b..c14fed5e 100644 --- a/TileStache/Goodies/VecTiles/oscimap.py +++ b/TileStache/Goodies/VecTiles/oscimap.py @@ -21,7 +21,8 @@ # tiles are padded by this number of pixels for the current zoom level (OSciMap uses this to cover up seams between tiles) padding = 5 -def encode(file, features, coord, layer_name): +def encode(file, features, coord, layer_name=''): + layer_name = layer_name or '' tile = VectorTile(extents) for feature in features: