package leaflet

  1. Overview
  2. Docs

Module Leaflet.EventSource

Sourcetype _ t =
  1. | Keyboard : Jv.t -> [> `Keyboard ] t
  2. | Mouse : Jv.t -> [> `Mouse ] t
  3. | Error : Jv.t -> [> `Error ] t
  4. | Basic : Jv.t -> [> `Basic ] t
Sourcetype _ sub =
  1. | Click : [> `Mouse ] sub
  2. | Move_end : [> `Basic ] sub
  3. | Zoom_end : [> `Basic ] sub
Sourceval of_jv : 'a sub -> Jv.t -> 'a t
Sourceval sub_to_string : _ sub -> string

Basic events

Sourceval get_type : _ t -> string
Sourceval target : _ t -> Brr.Ev.target
Sourceval source_target : _ t -> Brr.Ev.target
Sourceval propagated_from : _ t -> Jv.t

Keyboard & Mouse events

Sourceval original_event : [ `Keyboard | `Mouse ] t -> Jv.t

Mouse events

Sourceval container_point : [ `Mouse ] t -> Point.t
Sourceval layer_point : [ `Mouse ] t -> Point.t
Sourceval latlng : [ `Mouse ] t -> Latlng.t

Error events

Sourceval code : [ `Error ] t -> int
Sourceval message : [ `Error ] t -> string
OCaml

Innovation. Community. Security.