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

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -