Leaflet.js How to stop on map evnet -
I call a function when the user is panned with the map:
$ ('#updateTheMap') Click (function () (if (document.getElementById ('updateMap').) Was checked {// stop dragent event ...} and {map.on ('dragend', Function () {SortBinis (simpleFilterSql);});}});
But I did not know how this event would end?
Use a variable:
var updateTheMap = true; $ ('# UpdateTheMap'). (Function () {updateTheMap = document.getEle MentById ('updateMap'). Checked;}); Map.on ('dragend', function) {if (updateTheMap) sortBinis (simpleFilterSql);});
Comments
Post a Comment