Closed mLuby closed 8 years ago
I only see an event listener on the map itself in the API, but since there's an explicit bindPopup event on click, maybe there's a more general version exposed but not documented?
bindPopup
Never mind, can do
const marker = WE.marker([latitude, longitude], markerImagePath) marker.addTo(earth) marker.element.onclick = clickHandler
I only see an event listener on the map itself in the API, but since there's an explicit
bindPopup
event on click, maybe there's a more general version exposed but not documented?