projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebe7938
)
Pass along gpx parameter to iD
author
John Firebaugh
<john.firebaugh@gmail.com>
Fri, 22 Nov 2013 18:57:07 +0000
(10:57 -0800)
committer
John 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
patch
|
blob
|
history
diff --git
a/app/views/site/_id.html.erb
b/app/views/site/_id.html.erb
index 059009a0c9af07c535e5d3e97411d4a55d509c73..6409582cd1133cd43ebfe3e08c38f5a07e462f65 100644
(file)
--- a/
app/views/site/_id.html.erb
+++ b/
app/views/site/_id.html.erb
@@
-17,10
+17,15
@@
}
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 %>