Fixed: The wrmap attributes for longitude/latitude are lon/lat, not longitude/latitude.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Thu, 15 Aug 2013 08:53:04 +0000 (08:53 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Thu, 15 Aug 2013 08:53:04 +0000 (08:53 +0000)
git-svn-id: http://www.winterrodeln.org/svn/wrpylib/trunk@1514 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrpylib/wrmwmarkup.py

index 3392e4e10cd59d763c7aeb0adb77413d02ce7c0b..5dd7ec0b889603f61e1e9f9ae39d7278663a183e 100644 (file)
@@ -453,11 +453,11 @@ def parse_wrmap(wikitext):
 
     # attributes # TODO: check
     attributes = {}
-    attributes['latitude']  = float(wrmap_xml.attrib.get('lat', 47.267648)) # center lat
-    attributes['longitude'] = float(wrmap_xml.attrib.get('lon', 11.404655)) # center lon
-    attributes['zoom']      = int(wrmap_xml.attrib.get('zoom', 10))         # Google Zoom Level
-    attributes['width']     = int(wrmap_xml.attrib['width']) if wrmap_xml.attrib.has_key('width') else None # None corresponds to 100%
-    attributes['height']    = int(wrmap_xml.attrib.get('height', 450))      # map height in px
+    attributes['lat']    = float(wrmap_xml.attrib.get('lat', 47.267648)) # center lat
+    attributes['lon']    = float(wrmap_xml.attrib.get('lon', 11.404655)) # center lon
+    attributes['zoom']   = int(wrmap_xml.attrib.get('zoom', 10))         # Google Zoom Level
+    attributes['width']  = int(wrmap_xml.attrib['width']) if wrmap_xml.attrib.has_key('width') else None # None corresponds to 100%
+    attributes['height'] = int(wrmap_xml.attrib.get('height', 450))      # map height in px
     # show_sledruns = (wrmap_xml.tag == 'wrgmap')
 
     return attributes, json