geojson now gets property 'type'='punkt' if no symbol was assigned in <googlemap>.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sun, 8 Sep 2013 21:17:35 +0000 (21:17 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Sun, 8 Sep 2013 21:17:35 +0000 (21:17 +0000)
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@1537 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrpylib/wrmwmarkup.py

index 6877f472a67c942c9b180ea293517bd542d0a3b0..b65670edcb375e6f31cbba27da38a2510ec7e630 100644 (file)
@@ -333,8 +333,7 @@ def googlemap_to_wrmap(center, zoom, coords, paths):
     # point
     for point in coords:
         lon, lat, symbol, title = point
-        properties = {}
-        if symbol is not None: properties['type'] = symbol.lower()
+        properties = {'type': 'punkt' if symbol is None else symbol.lower()}
         if title is not None: properties['name'] = title
         json_features.append({
             'type': 'Feature',