Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Load Bing imagery with JOSM by default #505

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Load Bing imagery with JOSM by default
pyrog committed Dec 21, 2014
commit 79fe26e5ae54b3ab2cf154c18756693fc04ac2b5
22 changes: 14 additions & 8 deletions osmtm/static/js/project.js
Original file line number Diff line number Diff line change
@@ -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
});
}
}
});