diff --git a/scripts/umap-extractor.py b/scripts/umap-extractor.py
index 4c0a03c..3024f4d 100755
--- a/scripts/umap-extractor.py
+++ b/scripts/umap-extractor.py
@@ -25,10 +25,13 @@ config = {}
config["name"] = properties["name"]
colors = {}
config["layers"] = colors
-config["tilelayer"] = properties["tilelayer"]
-
-config["tilelayer"]["attribution"] = re.sub(r'\[\[([^|]+)\|([^|]+)\]\]', r'\2', config["tilelayer"]["attribution"])
+if "tilelayer" in properties and properties['tilelayer'] != {} :
+ config["tilelayer"] = properties["tilelayer"]
+ config["tilelayer"]["attribution"] = re.sub(r'\[\[([^|]+)\|([^|]+)\]\]', r'\2', config["tilelayer"]["attribution"])
+else :
+ config["tilelayer"] = { "attribution" : 'Map data © OpenStreetMap contributors', "url_template" : "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" }
+
def normalize_name(name) :
return name.replace("/", "_").replace("-","").replace(" ","").replace(".","")