Module
Leaflet.Map
- Package
- purescript-leaflet-tdammers
- Repository
- tdammers/purescript-leaflet-tdammers
#Map Source
data Map :: Type
A map object (http://leafletjs.com/reference-1.0.3.html#map-example)
#MouseEvent Source
type MouseEvent = { containerPoint :: Point, latlng :: LatLng, layerPoint :: Point }
Metadata for a mouse event.
#invalidateSize Source
invalidateSize :: forall e. Map -> Eff (leaflet :: LEAFLET | e) Unit
Tell a map that the size of its container may have changed, causing it to
#onMouseEvent Source
onMouseEvent :: forall e. String -> Map -> (MouseEvent -> e Unit) -> e Unit
Subscribe to a mouse even by name.
#onMouseMove Source
onMouseMove :: forall e. Map -> (MouseEvent -> e Unit) -> e Unit
Subscribe to the mousemove
event
#onMouseOver Source
onMouseOver :: forall e. Map -> (MouseEvent -> e Unit) -> e Unit
Subscribe to the mouseover
event
#onMouseOut Source
onMouseOut :: forall e. Map -> (MouseEvent -> e Unit) -> e Unit
Subscribe to the mouseout
event
#onMouseUp Source
onMouseUp :: forall e. Map -> (MouseEvent -> e Unit) -> e Unit
Subscribe to the mouseup
event (mouse button pressed)
#onMouseDown Source
onMouseDown :: forall e. Map -> (MouseEvent -> e Unit) -> e Unit
Subscribe to the mousedown
event (mouse button released)
#onClick Source
onClick :: forall e. Map -> (MouseEvent -> e Unit) -> e Unit
Subscribe to the click
event
#onDblClick Source
onDblClick :: forall e. Map -> (MouseEvent -> e Unit) -> e Unit
Subscribe to the dblclick
event (double click)