Merge branch 'redesign'
[rails.git] / app / views / site / _id.html.erb
index 195873c34c30194cf9491c0989691aaae6ae076d..cb0c53fc39472e20cb8faffe43f50e0202f32319 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 %>