content = $("#sidebar_content"),
page = {},
addNoteButton = $(".control-note .control-button"),
content = $("#sidebar_content"),
page = {},
addNoteButton = $(".control-note .control-button"),
function noteCreated(feature, marker) {
content.find("textarea").val("");
updateMarker(feature);
function noteCreated(feature, marker) {
content.find("textarea").val("");
updateMarker(feature);
noteLayer.removeLayer(marker);
addNoteButton.removeClass("active");
OSM.router.route("/note/" + feature.properties.id);
noteLayer.removeLayer(marker);
addNoteButton.removeClass("active");
OSM.router.route("/note/" + feature.properties.id);
- newNote.on("dragstart dragend", function (a) {
- newHalo(newNote.getLatLng(), a.type);
+ newNoteMarker.on("dragstart dragend", function (a) {
+ newHalo(newNoteMarker.getLatLng(), a.type);
addNoteButton.removeClass("active");
}).on("dragend", function () {
content.find("textarea").focus();
addNoteButton.removeClass("active");
}).on("dragend", function () {
content.find("textarea").focus();