EventManager class
Gestione degli eventi del controllo mappa. Esposto tramite la proprietà eventi dell'atlas. Classe Mappa. Impossibile creare un'istanza dell'utente.
Metodi
Dettagli metodo
add("boxzoomstart" | "boxzoomend" | "dragstart" | "drag" | "dragend" | "idle" | "load" | "movestart" | "move" | "moveend" | "pitchstart" | "pitch" | "pitchend" | "ready" | "render" | "resize" | "rotatestart" | "rotate" | "rotateend" | "tokenacquired" | "zoomstart" | "zoom" | "zoomend", (e: MapEvent) => void)
Aggiunge un evento alla mappa.
function add(eventType: "boxzoomstart" | "boxzoomend" | "dragstart" | "drag" | "dragend" | "idle" | "load" | "movestart" | "move" | "moveend" | "pitchstart" | "pitch" | "pitchend" | "ready" | "render" | "resize" | "rotatestart" | "rotate" | "rotateend" | "tokenacquired" | "zoomstart" | "zoom" | "zoomend", callback: (e: MapEvent) => void)
Parametri
- eventType
-
"boxzoomstart" | "boxzoomend" | "dragstart" | "drag" | "dragend" | "idle" | "load" | "movestart" | "move" | "moveend" | "pitchstart" | "pitch" | "pitchend" | "ready" | "render" | "resize" | "rotatestart" | "rotate" | "rotateend" | "tokenacquired" | "zoomstart" | "zoom" | "zoomend"
Il nome dell'evento.
- callback
-
(e: MapEvent) => void
Callback del gestore eventi.
add("click" | "contextmenu" | "dblclick" | "drag" | "dragstart" | "dragend" | "keydown" | "keypress" | "keyup" | "mousedown" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup", HtmlMarker | HtmlMarker[], (e: TargetedEvent) => void)
Aggiunge un evento a HtmlMarker(s).
function add(eventType: "click" | "contextmenu" | "dblclick" | "drag" | "dragstart" | "dragend" | "keydown" | "keypress" | "keyup" | "mousedown" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup", target: HtmlMarker | HtmlMarker[], callback: (e: TargetedEvent) => void)
Parametri
- eventType
-
"click" | "contextmenu" | "dblclick" | "drag" | "dragstart" | "dragend" | "keydown" | "keypress" | "keyup" | "mousedown" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup"
Il nome dell'evento.
- target
-
HtmlMarker | HtmlMarker[]
HtmlMarker(s) per aggiungere l'evento per.
- callback
-
(e: TargetedEvent) => void
Callback del gestore eventi.
add("data" | "sourcedata" | "styledata", (e: MapDataEvent) => void)
Aggiunge un evento di dati alla mappa.
function add(eventType: "data" | "sourcedata" | "styledata", callback: (e: MapDataEvent) => void)
Parametri
- eventType
-
"data" | "sourcedata" | "styledata"
Nome evento dati.
- callback
-
(e: MapDataEvent) => void
Callback del gestore eventi.
add("dataadded" | "dataremoved", DataSource | DataSource[], (e: Shape[]) => void)
Aggiunge un evento a DataSource(s).
function add(eventType: "dataadded" | "dataremoved", target: DataSource | DataSource[], callback: (e: Shape[]) => void)
Parametri
- eventType
-
"dataadded" | "dataremoved"
Il nome dell'evento.
- target
-
DataSource | DataSource[]
DataSource(s) per aggiungere l'evento per.
- callback
-
(e: Shape[]) => void
Callback del gestore eventi.
add("datasourceupdated", DataSource | DataSource[], (e: DataSource) => void)
Aggiunge un evento a DataSource(s).
function add(eventType: "datasourceupdated", target: DataSource | DataSource[], callback: (e: DataSource) => void)
Parametri
- eventType
-
"datasourceupdated"
Il nome dell'evento.
- target
-
DataSource | DataSource[]
DataSource(s) per aggiungere l'evento per.
- callback
-
(e: DataSource) => void
Callback del gestore eventi.
add("drag" | "dragend" | "dragstart" | "open" | "close", Popup | Popup[], (e: TargetedEvent) => void)
Aggiunge un evento ai popup.
function add(eventType: "drag" | "dragend" | "dragstart" | "open" | "close", target: Popup | Popup[], callback: (e: TargetedEvent) => void)
Parametri
- eventType
-
"drag" | "dragend" | "dragstart" | "open" | "close"
Il nome dell'evento.
- callback
-
(e: TargetedEvent) => void
Callback del gestore eventi.
add("error", (e: MapErrorEvent) => void)
Aggiunge un evento alla mappa.
function add(eventType: "error", callback: (e: MapErrorEvent) => void)
Parametri
- eventType
-
"error"
Nome evento di errore.
- callback
-
(e: MapErrorEvent) => void
Callback del gestore eventi.
add("layeradded" | "layerremoved", (e: Layer) => void)
Aggiunge un evento alla mappa.
function add(eventType: "layeradded" | "layerremoved", callback: (e: Layer) => void)
Parametri
- eventType
-
"layeradded" | "layerremoved"
Il nome dell'evento.
- callback
-
(e: Layer) => void
Callback del gestore eventi.
add("layeradded" | "layerremoved", Layer | Layer[], (e: Layer) => void)
Aggiunge un evento ai livelli.
function add(eventType: "layeradded" | "layerremoved", target: Layer | Layer[], callback: (e: Layer) => void)
Parametri
- eventType
-
"layeradded" | "layerremoved"
Il nome dell'evento.
- callback
-
(e: Layer) => void
Callback del gestore eventi.
add("mapconfigurationchanged", (e: MapConfiguration) => void)
Aggiunge un evento di modifica mapConfiguration alla mappa.
function add(eventType: "mapconfigurationchanged", callback: (e: MapConfiguration) => void)
Parametri
- eventType
-
"mapconfigurationchanged"
Nome evento mapConfiguration modificato
- callback
-
(e: MapConfiguration) => void
Callback del gestore eventi
add("mousedown" | "mouseup" | "mouseover" | "mousemove" | "click" | "dblclick" | "mouseout" | "contextmenu", (e: MapMouseEvent) => void)
Aggiunge un evento del mouse alla mappa.
function add(eventType: "mousedown" | "mouseup" | "mouseover" | "mousemove" | "click" | "dblclick" | "mouseout" | "contextmenu", callback: (e: MapMouseEvent) => void)
Parametri
- eventType
-
"mousedown" | "mouseup" | "mouseover" | "mousemove" | "click" | "dblclick" | "mouseout" | "contextmenu"
Nome dell'evento del mouse.
- callback
-
(e: MapMouseEvent) => void
Callback del gestore eventi.
add("mousedown" | "mouseup" | "mouseover" | "mousemove" | "click" | "dblclick" | "mouseout" | "mouseenter" | "mouseleave" | "contextmenu", Layer | Layer[], (e: MapMouseEvent) => void)
Aggiunge un evento del mouse ai livelli.
function add(eventType: "mousedown" | "mouseup" | "mouseover" | "mousemove" | "click" | "dblclick" | "mouseout" | "mouseenter" | "mouseleave" | "contextmenu", target: Layer | Layer[], callback: (e: MapMouseEvent) => void)
Parametri
- eventType
-
"mousedown" | "mouseup" | "mouseover" | "mousemove" | "click" | "dblclick" | "mouseout" | "mouseenter" | "mouseleave" | "contextmenu"
Il nome dell'evento.
- callback
-
(e: MapMouseEvent) => void
Callback del gestore eventi.
add("shapechanged", Shape | Shape[], (e: Shape) => void)
Aggiunge un evento alle forme.
function add(eventType: "shapechanged", target: Shape | Shape[], callback: (e: Shape) => void)
Parametri
- eventType
-
"shapechanged"
Il nome dell'evento.
- callback
-
(e: Shape) => void
Callback del gestore eventi.
add("sourceadded" | "sourceremoved", (e: Source) => void)
Aggiunge un evento alla mappa.
function add(eventType: "sourceadded" | "sourceremoved", callback: (e: Source) => void)
Parametri
- eventType
-
"sourceadded" | "sourceremoved"
Il nome dell'evento.
- callback
-
(e: Source) => void
Callback del gestore eventi.
add("sourceadded" | "sourceremoved", Source | Source[], (e: Source) => void)
Aggiunge un evento alle origini.
function add(eventType: "sourceadded" | "sourceremoved", target: Source | Source[], callback: (e: Source) => void)
Parametri
- eventType
-
"sourceadded" | "sourceremoved"
Il nome dell'evento.
- callback
-
(e: Source) => void
Callback del gestore eventi.
add("stylechanged", (e: StyleChangedEvent) => void)
Aggiunge un evento a rotelle alla mappa.
function add(eventType: "stylechanged", callback: (e: StyleChangedEvent) => void)
Parametri
- eventType
-
"stylechanged"
Nome dell'evento della ruota.
- callback
-
(e: StyleChangedEvent) => void
Callback del gestore eventi.
add("styleimagemissing", (e: string) => void)
Aggiunge un'immagine di stile mancante alla mappa.
function add(eventType: "styleimagemissing", callback: (e: string) => void)
Parametri
- eventType
-
"styleimagemissing"
Nome evento mancante dell'immagine di stile.
- callback
-
(e: string) => void
Callback del gestore eventi.
add("styleselected", StyleControl, (e: string) => void)
Aggiunge un evento a StyleControl
function add(eventType: "styleselected", target: StyleControl, callback: (e: string) => void)
Parametri
- eventType
-
"styleselected"
Il nome dell'evento.
- target
- StyleControl
StyleControl per aggiungere l'evento per.
- callback
-
(e: string) => void
Callback del gestore eventi.
add("touchstart" | "touchend" | "touchmove" | "touchcancel", (e: MapTouchEvent) => void)
Aggiunge un evento touch alla mappa.
function add(eventType: "touchstart" | "touchend" | "touchmove" | "touchcancel", callback: (e: MapTouchEvent) => void)
Parametri
- eventType
-
"touchstart" | "touchend" | "touchmove" | "touchcancel"
Nome dell'evento touch.
- callback
-
(e: MapTouchEvent) => void
Callback del gestore eventi.
add("touchstart" | "touchend" | "touchmove" | "touchcancel", Layer | Layer[], (e: MapTouchEvent) => void)
Aggiunge un evento touch ai livelli.
function add(eventType: "touchstart" | "touchend" | "touchmove" | "touchcancel", target: Layer | Layer[], callback: (e: MapTouchEvent) => void)
Parametri
- eventType
-
"touchstart" | "touchend" | "touchmove" | "touchcancel"
Il nome dell'evento.
- callback
-
(e: MapTouchEvent) => void
Callback del gestore eventi.
add("wheel", (e: MapMouseWheelEvent) => void)
Aggiunge un evento a rotelle alla mappa.
function add(eventType: "wheel", callback: (e: MapMouseWheelEvent) => void)
Parametri
- eventType
-
"wheel"
Nome dell'evento della ruota.
- callback
-
(e: MapMouseWheelEvent) => void
Callback del gestore eventi.
add("wheel", Layer | Layer[], (e: MapMouseWheelEvent) => void)
Aggiunge un evento a rotelle ai livelli.
function add(eventType: "wheel", target: Layer | Layer[], callback: (e: MapMouseWheelEvent) => void)
Parametri
- eventType
-
"wheel"
Il nome dell'evento.
- callback
-
(e: MapMouseWheelEvent) => void
Callback del gestore eventi.
addOnce("boxzoomstart" | "boxzoomend" | "dragstart" | "drag" | "dragend" | "idle" | "load" | "movestart" | "move" | "moveend" | "pitchstart" | "pitch" | "pitchend" | "ready" | "render" | "resize" | "rotatestart" | "rotate" | "rotateend" | "tokenacquired" | "zoomstart" | "zoom" | "zoomend", (e: MapEvent) => void)
Aggiunge un evento alla mappa.
function addOnce(eventType: "boxzoomstart" | "boxzoomend" | "dragstart" | "drag" | "dragend" | "idle" | "load" | "movestart" | "move" | "moveend" | "pitchstart" | "pitch" | "pitchend" | "ready" | "render" | "resize" | "rotatestart" | "rotate" | "rotateend" | "tokenacquired" | "zoomstart" | "zoom" | "zoomend", callback: (e: MapEvent) => void)
Parametri
- eventType
-
"boxzoomstart" | "boxzoomend" | "dragstart" | "drag" | "dragend" | "idle" | "load" | "movestart" | "move" | "moveend" | "pitchstart" | "pitch" | "pitchend" | "ready" | "render" | "resize" | "rotatestart" | "rotate" | "rotateend" | "tokenacquired" | "zoomstart" | "zoom" | "zoomend"
Il nome dell'evento.
- callback
-
(e: MapEvent) => void
Callback del gestore eventi.
addOnce("click" | "contextmenu" | "dblclick" | "drag" | "dragstart" | "dragend" | "keydown" | "keypress" | "keyup" | "mousedown" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup", HtmlMarker, (e: TargetedEvent) => void)
Aggiunge un evento a HtmlMarker.
function addOnce(eventType: "click" | "contextmenu" | "dblclick" | "drag" | "dragstart" | "dragend" | "keydown" | "keypress" | "keyup" | "mousedown" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup", target: HtmlMarker, callback: (e: TargetedEvent) => void)
Parametri
- eventType
-
"click" | "contextmenu" | "dblclick" | "drag" | "dragstart" | "dragend" | "keydown" | "keypress" | "keyup" | "mousedown" | "mouseenter" | "mouseleave" | "mousemove" | "mouseout" | "mouseover" | "mouseup"
Il nome dell'evento.
- target
- HtmlMarker
HtmlMarker per aggiungere l'evento per.
- callback
-
(e: TargetedEvent) => void
Callback del gestore eventi.
addOnce("data" | "sourcedata" | "styledata", (e: MapDataEvent) => void)
Aggiunge un evento di dati alla mappa.
function addOnce(eventType: "data" | "sourcedata" | "styledata", callback: (e: MapDataEvent) => void)
Parametri
- eventType
-
"data" | "sourcedata" | "styledata"
Nome dell'evento di dati.
- callback
-
(e: MapDataEvent) => void
Callback del gestore eventi.
addOnce("dataadded" | "dataremoved", DataSource, (e: Shape[]) => void)
Aggiunge un evento a DataSource.
function addOnce(eventType: "dataadded" | "dataremoved", target: DataSource, callback: (e: Shape[]) => void)
Parametri
- eventType
-
"dataadded" | "dataremoved"
Il nome dell'evento.
- target
- DataSource
DataSource per cui aggiungere l'evento.
- callback
-
(e: Shape[]) => void
Callback del gestore eventi.
addOnce("datasourceupdated", DataSource, (e: DataSource) => void)
Aggiunge un evento a DataSource.
function addOnce(eventType: "datasourceupdated", target: DataSource, callback: (e: DataSource) => void)
Parametri
- eventType
-
"datasourceupdated"
Il nome dell'evento.
- target
- DataSource
DataSource per cui aggiungere l'evento.
- callback
-
(e: DataSource) => void
Callback del gestore eventi.
addOnce("drag" | "dragend" | "dragstart" | "open" | "close", Popup, (e: TargetedEvent) => void)
Aggiunge un evento al popup.
function addOnce(eventType: "drag" | "dragend" | "dragstart" | "open" | "close", target: Popup, callback: (e: TargetedEvent) => void)
Parametri
- eventType
-
"drag" | "dragend" | "dragstart" | "open" | "close"
Il nome dell'evento.
- target
- Popup
Popup per cui aggiungere l'evento.
- callback
-
(e: TargetedEvent) => void
Callback del gestore eventi.
addOnce("error", (e: MapErrorEvent) => void)
Aggiunge un evento alla mappa.
function addOnce(eventType: "error", callback: (e: MapErrorEvent) => void)
Parametri
- eventType
-
"error"
Nome dell'evento di errore.
- callback
-
(e: MapErrorEvent) => void
Callback del gestore eventi.
addOnce("layeradded" | "layerremoved", (e: Layer) => void)
Aggiunge un evento alla mappa.
function addOnce(eventType: "layeradded" | "layerremoved", callback: (e: Layer) => void)
Parametri
- eventType
-
"layeradded" | "layerremoved"
Il nome dell'evento.
- callback
-
(e: Layer) => void
Callback del gestore eventi.
addOnce("layeradded" | "layerremoved", Layer, (e: Layer) => void)
Aggiunge un evento di tocco al livello.
function addOnce(eventType: "layeradded" | "layerremoved", target: Layer, callback: (e: Layer) => void)
Parametri
- eventType
-
"layeradded" | "layerremoved"
Nome dell'evento di tocco.
- target
- Layer
Livello per cui aggiungere l'evento.
- callback
-
(e: Layer) => void
Callback del gestore eventi.
addOnce("mousedown" | "mouseup" | "mouseover" | "mousemove" | "click" | "dblclick" | "mouseout" | "contextmenu", (e: MapMouseEvent) => void)
Aggiunge un evento del mouse alla mappa.
function addOnce(eventType: "mousedown" | "mouseup" | "mouseover" | "mousemove" | "click" | "dblclick" | "mouseout" | "contextmenu", callback: (e: MapMouseEvent) => void)
Parametri
- eventType
-
"mousedown" | "mouseup" | "mouseover" | "mousemove" | "click" | "dblclick" | "mouseout" | "contextmenu"
Nome dell'evento del mouse.
- callback
-
(e: MapMouseEvent) => void
Callback del gestore eventi.
addOnce("mousedown" | "mouseup" | "mouseover" | "mousemove" | "click" | "dblclick" | "mouseout" | "mouseenter" | "mouseleave" | "contextmenu", Layer, (e: MapMouseEvent) => void)
Aggiunge un evento del mouse al livello.
function addOnce(eventType: "mousedown" | "mouseup" | "mouseover" | "mousemove" | "click" | "dblclick" | "mouseout" | "mouseenter" | "mouseleave" | "contextmenu", target: Layer, callback: (e: MapMouseEvent) => void)
Parametri
- eventType
-
"mousedown" | "mouseup" | "mouseover" | "mousemove" | "click" | "dblclick" | "mouseout" | "mouseenter" | "mouseleave" | "contextmenu"
Nome dell'evento del mouse.
- target
- Layer
Livello per cui aggiungere l'evento.
- callback
-
(e: MapMouseEvent) => void
Callback del gestore eventi.
addOnce("shapechanged", Shape, (e: Shape) => void)
Aggiunge un evento alla forma.
function addOnce(eventType: "shapechanged", target: Shape, callback: (e: Shape) => void)
Parametri
- eventType
-
"shapechanged"
Il nome dell'evento.
- target
- Shape
Oggetto Shape per cui aggiungere l'evento.
- callback
-
(e: Shape) => void
Callback del gestore eventi.
addOnce("sourceadded" | "sourceremoved", (e: Source) => void)
Aggiunge un evento alla mappa.
function addOnce(eventType: "sourceadded" | "sourceremoved", callback: (e: Source) => void)
Parametri
- eventType
-
"sourceadded" | "sourceremoved"
Il nome dell'evento.
- callback
-
(e: Source) => void
Callback del gestore eventi.
addOnce("sourceadded" | "sourceremoved", Source, (e: Source) => void)
Aggiunge un evento all'oggetto Source.
function addOnce(eventType: "sourceadded" | "sourceremoved", target: Source, callback: (e: Source) => void)
Parametri
- eventType
-
"sourceadded" | "sourceremoved"
Il nome dell'evento.
- target
- Source
Origine per cui aggiungere l'evento.
- callback
-
(e: Source) => void
Callback del gestore eventi.
addOnce("stylechanged", (e: StyleChangedEvent) => void)
Aggiunge un evento ruota alla mappa.
function addOnce(eventType: "stylechanged", callback: (e: StyleChangedEvent) => void)
Parametri
- eventType
-
"stylechanged"
Nome dell'evento wheel.
- callback
-
(e: StyleChangedEvent) => void
Callback del gestore eventi.
addOnce("styleimagemissing", (e: string) => void)
Aggiunge un evento mancante di un'immagine di stile alla mappa.
function addOnce(eventType: "styleimagemissing", callback: (e: string) => void)
Parametri
- eventType
-
"styleimagemissing"
Nome dell'evento mancante nell'immagine di stile.
- callback
-
(e: string) => void
Callback del gestore eventi.
addOnce("styleselected", StyleControl, (e: string) => void)
Aggiunge un evento a StyleControl
function addOnce(eventType: "styleselected", target: StyleControl, callback: (e: string) => void)
Parametri
- eventType
-
"styleselected"
Il nome dell'evento.
- target
- StyleControl
StyleControl per cui aggiungere l'evento.
- callback
-
(e: string) => void
Callback del gestore eventi.
addOnce("touchstart" | "touchend" | "touchmove" | "touchcancel", (e: MapTouchEvent) => void)
Aggiunge un evento di tocco alla mappa.
function addOnce(eventType: "touchstart" | "touchend" | "touchmove" | "touchcancel", callback: (e: MapTouchEvent) => void)
Parametri
- eventType
-
"touchstart" | "touchend" | "touchmove" | "touchcancel"
Nome dell'evento di tocco.
- callback
-
(e: MapTouchEvent) => void
Callback del gestore eventi.
addOnce("touchstart" | "touchend" | "touchmove" | "touchcancel", Layer, (e: MapTouchEvent) => void)
Aggiunge un evento di tocco al livello.
function addOnce(eventType: "touchstart" | "touchend" | "touchmove" | "touchcancel", target: Layer, callback: (e: MapTouchEvent) => void)
Parametri
- eventType
-
"touchstart" | "touchend" | "touchmove" | "touchcancel"
Nome dell'evento di tocco.
- target
- Layer
Livello per cui aggiungere l'evento.
- callback
-
(e: MapTouchEvent) => void
Callback del gestore eventi.
addOnce("wheel", (e: MapMouseWheelEvent) => void)
Aggiunge un evento ruota alla mappa.
function addOnce(eventType: "wheel", callback: (e: MapMouseWheelEvent) => void)
Parametri
- eventType
-
"wheel"
Nome dell'evento wheel.
- callback
-
(e: MapMouseWheelEvent) => void
Callback del gestore eventi.
addOnce("wheel", Layer, (e: MapMouseWheelEvent) => void)
Aggiunge un evento wheel al layer.
function addOnce(eventType: "wheel", target: Layer, callback: (e: MapMouseWheelEvent) => void)
Parametri
- eventType
-
"wheel"
Nome dell'evento wheel.
- target
- Layer
Livello per cui aggiungere l'evento.
- callback
-
(e: MapMouseWheelEvent) => void
Callback del gestore eventi.
invoke(string, any)
Richiama un evento sulla mappa. In questo modo tutti i gestori eventi sulla mappa vengono chiamati con il nome dell'evento specificato.
function invoke(eventType: string, args: any): any
Parametri
- eventType
-
string
Nome dell'evento da richiamare.
- args
-
any
Dati da passare ai callback.
Restituisce
any
invoke(string, any, any)
Richiama un evento della destinazione. In questo modo tutti i gestori eventi nella destinazione con il nome dell'evento specificato devono essere chiamati.
function invoke(eventType: string, target: any, args: any): any
Parametri
- eventType
-
string
Nome dell'evento da richiamare.
- target
-
any
Destinazione in cui richiamare l'evento. I tipi di destinazione supportati sono Layer, HtmlMarker e Popup.
- args
-
any
Dati da passare ai callback. I dati possono essere null
ma non possono essere undefined
.
Restituisce
any
remove(string, (e: void | Layer | MapEvent | MapDataEvent | MapMouseEvent | MapTouchEvent | MapMouseWheelEvent | Source | string | MapConfiguration) => void)
Rimuove un listener di eventi dalla mappa.
function remove(eventType: string, callback: (e: void | Layer | MapEvent | MapDataEvent | MapMouseEvent | MapTouchEvent | MapMouseWheelEvent | Source | string | MapConfiguration) => void)
Parametri
- eventType
-
string
Il nome dell'evento.
- callback
-
(e: void | Layer | MapEvent | MapDataEvent | MapMouseEvent | MapTouchEvent | MapMouseWheelEvent | Source | string | MapConfiguration) => void
Callback del gestore eventi.
remove(string, DataSource | DataSource[], (e: DataSource | Shape[]) => void)
Rimuove un listener di eventi dalle origini dati.
function remove(eventType: string, target: DataSource | DataSource[], callback: (e: DataSource | Shape[]) => void)
Parametri
- eventType
-
string
Il nome dell'evento.
- target
-
DataSource | DataSource[]
Origine dati per cui rimuovere l'evento.
- callback
-
(e: DataSource | Shape[]) => void
Callback del gestore eventi.
remove(string, HtmlMarker | HtmlMarker[], (e: TargetedEvent) => void)
Rimuove un listener di eventi dai HtmlMarker.
function remove(eventType: string, target: HtmlMarker | HtmlMarker[], callback: (e: TargetedEvent) => void)
Parametri
- eventType
-
string
Il nome dell'evento.
- target
-
HtmlMarker | HtmlMarker[]
HtmlMarker per cui rimuovere l'evento.
- callback
-
(e: TargetedEvent) => void
Callback del gestore eventi.
remove(string, Layer | Layer[], (e: void | MapMouseEvent | MapTouchEvent | MapMouseWheelEvent | Layer) => void)
Rimuove un listener di eventi dai livelli.
function remove(eventType: string, target: Layer | Layer[], callback: (e: void | MapMouseEvent | MapTouchEvent | MapMouseWheelEvent | Layer) => void)
Parametri
- eventType
-
string
Il nome dell'evento.
- callback
-
(e: void | MapMouseEvent | MapTouchEvent | MapMouseWheelEvent | Layer) => void
Callback del gestore eventi.
remove(string, Popup | Popup[], (e: TargetedEvent) => void)
Rimuove un listener di eventi dai popup.
function remove(eventType: string, target: Popup | Popup[], callback: (e: TargetedEvent) => void)
Parametri
- eventType
-
string
Il nome dell'evento.
- callback
-
(e: TargetedEvent) => void
Callback del gestore eventi.
remove(string, Shape | Shape[], (e: Shape) => void)
Rimuove un listener di eventi dalle forme.
function remove(eventType: string, target: Shape | Shape[], callback: (e: Shape) => void)
Parametri
- eventType
-
string
Il nome dell'evento.
- callback
-
(e: Shape) => void
Callback del gestore eventi.
remove(string, Source | Source[], (e: Source) => void)
Rimuove un listener eventi da Source(s).
function remove(eventType: string, target: Source | Source[], callback: (e: Source) => void)
Parametri
- eventType
-
string
Il nome dell'evento.
- callback
-
(e: Source) => void
Callback del gestore eventi.
remove(string, StyleControl, (e: string) => void)
Rimuove un evento in StyleControl
function remove(eventType: string, target: StyleControl, callback: (e: string) => void)
Parametri
- eventType
-
string
Il nome dell'evento.
- target
- StyleControl
StyleControl per aggiungere l'evento per.
- callback
-
(e: string) => void
Callback del gestore eventi.