forked from 0x2620/oxjs
one layer per rectangle to redouce events
This commit is contained in:
parent
1bac02d24f
commit
80d3919b46
3 changed files with 18 additions and 19 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue