Allow changeset source tag to be settable via url api
(see https://github.com/openstreetmap/iD/issues/4899)
This commit is contained in:
parent
714d3d9e2d
commit
4399cc793f
1 changed files with 5 additions and 4 deletions
|
@ -2,9 +2,9 @@ $(document).ready(function () {
|
|||
var id = $("#id-embed");
|
||||
|
||||
if (id.data("key")) {
|
||||
var hashParams = OSM.params(location.hash.substring(1)),
|
||||
mapParams = OSM.mapParams(),
|
||||
params = {};
|
||||
var hashParams = OSM.params(location.hash.substring(1));
|
||||
var mapParams = OSM.mapParams();
|
||||
var params = {};
|
||||
|
||||
if (mapParams.object) {
|
||||
params.id = mapParams.object.type[0] + mapParams.object.id;
|
||||
|
@ -20,8 +20,9 @@ $(document).ready(function () {
|
|||
|
||||
if (hashParams.background) params.background = hashParams.background;
|
||||
if (hashParams.comment) params.comment = hashParams.comment;
|
||||
if (hashParams.disable_features) params.disable_features = hashParams.disable_features;
|
||||
if (hashParams.hashtags) params.hashtags = hashParams.hashtags;
|
||||
if (hashParams.source) params.source = hashParams.source;
|
||||
if (hashParams.disable_features) params.disable_features = hashParams.disable_features;
|
||||
if (hashParams.offset) params.offset = hashParams.offset;
|
||||
if (hashParams.walkthrough) params.walkthrough = hashParams.walkthrough;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue