- newNote = L.marker(markerLatlng, {
- icon: noteIcons.new,
- opacity: 0.9,
- draggable: true
- });
-
- newNote.on("dragstart dragend", function (a) {
- newHalo(newNote.getLatLng(), a.type);
- });
-
- newNote.addTo(noteLayer);
- newHalo(newNote.getLatLng());
-
- newNote.on("remove", function () {
- addNoteButton.removeClass("active");
- }).on("dragstart", function () {
- $(newNote).stopTime("removenote");
- }).on("dragend", function () {
- content.find("textarea").focus();
- });