Pass along gpx parameter to iD
See https://github.com/systemed/iD/issues/1965
This commit is contained in:
parent
ebe7938886
commit
1557f9cf89
1 changed files with 5 additions and 0 deletions
|
@ -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 %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue