Pass along gpx parameter to iD
authorJohn Firebaugh <john.firebaugh@gmail.com>
Fri, 22 Nov 2013 18:57:07 +0000 (10:57 -0800)
committerJohn Firebaugh <john.firebaugh@gmail.com>
Fri, 22 Nov 2013 18:57:07 +0000 (10:57 -0800)
See https://github.com/systemed/iD/issues/1965

app/views/site/_id.html.erb

index 059009a0c9af07c535e5d3e97411d4a55d509c73..6409582cd1133cd43ebfe3e08c38f5a07e462f65 100644 (file)
     }
 
     var hashParams = OSM.params(location.hash.substring(1));
+
     if (hashParams.background) {
       params.background = hashParams.background;
     }
 
+    if (hashParams.gpx) {
+      params.gpx = hashParams.gpx;
+    }
+
     $('#id-embed').attr('src', '<%= id_url :locale => params[:locale] %>#' + querystring.stringify(params));
   </script>
 <% else %>