Open
Description
The following code shows the problem:
from ipyleaflet import Map, Marker, DivIcon
m = ipyleaflet.Map(center = (52, -8))
def handler(**kwargs):
if kwargs['type'] == 'mousemove':
print(kwargs)
icon = DivIcon(icon_size = [100, 100])
marker = Marker(location = (52, -8), icon = icon)
m.add(marker)
m.on_interaction(handler)
m
When the mouse is over the marker, it shows the coordinates of the marker rather than the mouse.
Metadata
Metadata
Assignees
Labels
No labels