return Math.max(0, Math.ceil(Math.log(zoom) / Math.LN2));
}
-function remoteEditHandler(bbox, select) {
+function remoteEditHandler(bbox, object) {
var loaded = false,
query = {
left: bbox.getWest() - 0.0001,
bottom: bbox.getSouth() - 0.0001
};
- if (select) query.select = select;
+ if (object) query.select = object.type + object.id;
var iframe = $('<iframe>')
.hide()
$("header").toggleClass("closed");
});
});
+
+if (Math.random() * 100 < 20) {
+ L.OSM.Mapnik.prototype.options.url = 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
+}