MAX_REQUEST_AREA = 0.25
def map
- response.headers["Content-Type"] = 'application/xml'
+ response.headers["Content-Type"] = 'text/xml'
# Figure out the bbox
bbox = params['bbox']
unless bbox and bbox.count(',') == 3
# get missing nodes if there are any
nodes += Node.find(missing_nodes) if missing_nodes.length > 0
- doc = OSM::API.get_xml_doc
+ doc = OSM::API.new.get_xml_doc
# get ways
# find which ways are needed