Module
Leaflet.MouseInteraction
- Package
- purescript-leaflet-tdammers
- Repository
- tdammers/purescript-leaflet-tdammers
#MouseEventTarget Source
data MouseEventTarget :: Type
#MouseEvent Source
newtype MouseEvent
Metadata for a mouse event.
Constructors
MouseEvent { containerPoint :: Point, latlng :: LatLng, layerPoint :: Point }
Instances
#MouseEventHandle Source
data MouseEventHandle :: Type
#onMouseEventJS Source
onMouseEventJS :: forall e. String -> MouseEventTarget -> (MouseEvent -> Eff (leaflet :: LEAFLET | e) Unit) -> Eff (leaflet :: LEAFLET | e) MouseEventHandle
Subscribe to a mouse event by name.
#offMouseEventJS Source
offMouseEventJS :: forall e. String -> MouseEventTarget -> MouseEventHandle -> Eff (leaflet :: LEAFLET | e) Unit
Unsubscribe from a mouse event by name.
#onMouseEvent Source
onMouseEvent :: forall e. MouseEventType -> MouseEventTarget -> (MouseEvent -> Eff (leaflet :: LEAFLET | e) Unit) -> Eff (leaflet :: LEAFLET | e) MouseEventHandle
#offMouseEvent Source
offMouseEvent :: forall e. MouseEventType -> MouseEventTarget -> MouseEventHandle -> Eff (leaflet :: LEAFLET | e) Unit