# 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