Answer the question
In order to leave comments, you need to log in
How to trigger a "click" event in Angular Leaflet if there is only a dom element?
There is an element found by id. This element is a marker element on the map. You need to trigger an event on this element in order to click on the marker on the map.
triggerHandler("click") has no effect.
Answer the question
In order to leave comments, you need to log in
el = document.getElementById('map_element');
el.dispatchEvent('click');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question