more fixes
This commit is contained in:
parent
bcade5f2d7
commit
f3e0632f0e
4 changed files with 39 additions and 16 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue