});
function updateData() {
- var bounds = map.getBounds();
+ const bounds = map.getBounds();
if (!loadedBounds || !loadedBounds.contains(bounds)) {
getData();
}
}
function getData() {
- var bounds = map.getBounds();
- var url = "/api/" + OSM.API_VERSION + "/map.json?bbox=" + bounds.toBBoxString();
+ const bounds = map.getBounds();
+ const url = "/api/" + OSM.API_VERSION + "/map.json?bbox=" + bounds.toBBoxString();
/*
* Modern browsers are quite happy showing far more than 100 features in
.then(function (data) {
dataLayer.clearLayers();
- var features = dataLayer.buildFeatures(data);
+ const features = dataLayer.buildFeatures(data);
function addFeatures() {
$("#browse_status").empty();