more fixes

This commit is contained in:
j 2025-08-06 21:50:00 +02:00
commit f3e0632f0e
4 changed files with 39 additions and 16 deletions

View file

@ -140,8 +140,11 @@ class MapLibreRectangle {
});
}
_enableClicking() {
this.map.on('click', `${this.id}-fill`, e => {
this.map.on('click', `rectangles-fill`, e => {
console.log('click', e)
if (this.onclick) {
e.preventDefault()
//e.stopPropagation()
this.onclick(e)
}
})
@ -219,7 +222,6 @@ Ox.MapRectangle = function(options) {
function click(e) {
console.log('rectangle click', e)
return
if (
that.map.options('editable')
&& that.place.editable