$(this).show();
});
- $.ajax({
+ if ($section.data("ajax")) {
+ $section.data("ajax").abort();
+ }
+
+ $section.data("ajax", $.ajax({
url: OSM.OVERPASS_URL,
method: "POST",
data: {
.appendTo($ul);
}
}
- });
+ }));
}
function queryOverpass(lat, lng) {