package leaflet

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type _ 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
type _ sub =
  1. | Click : [> `Mouse ] sub
  2. | Move_end : [> `Basic ] sub
  3. | Zoom_end : [> `Basic ] sub
val of_jv : 'a sub -> Jv.t -> 'a t
val sub_to_string : _ sub -> string

Basic events

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

Keyboard & Mouse events

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

Mouse events

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

Error events

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

Innovation. Community. Security.