Feature: show geocoded images on the map when hovered, show interactive minimap on nearbyImages element

This commit is contained in:
Pieter Vander Vennet 2024-09-12 01:31:00 +02:00
parent d079ba91aa
commit f3fdc95bd0
23 changed files with 404 additions and 182 deletions

View file

@ -159,10 +159,9 @@ class PointRenderingLayer {
})
if (this._onClick) {
const self = this
el.addEventListener("click", function (ev) {
el.addEventListener("click", (ev)=> {
ev.preventDefault()
self._onClick(feature)
this._onClick(feature)
// Workaround to signal the MapLibreAdaptor to ignore this click
ev["consumed"] = true
})