1
0
Fork 0
forked from 0x2620/oxjs

one layer per rectangle to redouce events

This commit is contained in:
j 2025-08-06 23:31:07 +02:00
commit 80d3919b46
3 changed files with 18 additions and 19 deletions

View file

@ -621,8 +621,6 @@ Ox.Map = function(options, self) {
}
function clickMap(event) {
console.log("not this one", event)
return
var place = getSelectedPlace();
if (self.options.clickable/* && !editing()*/) {
getPlaceByLatLng(event.lngLat, self.map.getBounds(), function(place) {
@ -718,6 +716,7 @@ Ox.Map = function(options, self) {
callback = point;
point = self.map.getCenter();
}
// fixme, why is getMaxZoom off by one?
let maxZoom = self.map.getMaxZoom()
setTimeout(() => {
callback(maxZoom)