You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following snippet to fire a click event works at launch in Lizmap.
var lastPx = lizMap.map.getPixelFromLonLat({lat: y, lon: x});
event.xy = {x: lastPx.x, y: lastPx.y};
var res = lizMap.map.events.triggerEvent("click", event);
As soon as the map is panned, it stops working. res returns False.
I am wondering how we can open feature popups programmatically from xy coordinates.
Versions, safeguards, check summary etc
Lizmap Web Client 3.7.10
qGIS Server 3.34.6
Check Lizmap plugin
I have done the step just before in the Lizmap QGIS desktop plugin before opening this ticket. Otherwise, my ticket is not considered valid and might get closed.
Operating system
Ubuntu 22.04.2 LTS
Browsers
Chrome
Browsers version
127.0.6533.120 (Official Build) (64-bit)
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
What is the question? (in English)
The following snippet to fire a click event works at launch in Lizmap.
As soon as the map is panned, it stops working.
res
returnsFalse
.I am wondering how we can open feature popups programmatically from xy coordinates.
Versions, safeguards, check summary etc
Lizmap Web Client 3.7.10
qGIS Server 3.34.6
Check Lizmap plugin
Operating system
Ubuntu 22.04.2 LTS
Browsers
Chrome
Browsers version
127.0.6533.120 (Official Build) (64-bit)
Relevant log output
No response
The text was updated successfully, but these errors were encountered: