Don't try and add a note when the control is disabled
This commit is contained in:
parent
0d11ad7415
commit
ee530d8111
1 changed files with 2 additions and 0 deletions
|
@ -174,6 +174,8 @@ $(document).ready(function () {
|
|||
$("#createnoteanchor").click(function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
if ($(e.target).hasClass("disabled")) return;
|
||||
|
||||
map.addLayer(noteLayer);
|
||||
|
||||
var marker = L.marker(map.getCenter(), {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue