Skip to content

Commit

Permalink
Load Bing imagery with JOSM by default
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrog committed Dec 21, 2014
1 parent 6fbdc44 commit 79fe26e
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions osmtm/static/js/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,15 +435,21 @@ osmtm.project = (function() {
alert("JOSM remote control did not respond. Do you have JOSM running and configured to be controlled remotely?");
} else {
if (typeof imagery_url != "undefined" && imagery_url !== '') {
$.ajax({
url: 'http://127.0.0.1:8111/imagery',
data: {
title: "Tasking Manager - #" + project_id,
type: imagery_url.toLowerCase().substring(0,3),
url: imagery_url
}
});
var data = {
title: "Tasking Manager - #" + project_id,
type: imagery_url.toLowerCase().substring(0, 3),
url: imagery_url
};
} else {
var data = {
type: 'bing',
url: 'http://www.bing.com/maps/'
};
}
$.ajax({
url: 'http://127.0.0.1:8111/imagery',
data: data
});
}
}
});
Expand Down

0 comments on commit 79fe26e

Please sign in to comment.