Modifier and Type | Method and Description |
---|---|
L |
addEventParent(Evented obj)
Adds an event parent - an Evented that will receive propagated events
|
L |
addTo(Map map)
Adds the tooltip to the given map
|
L |
bindPopup(HTMLElement content,
PopupOptions options)
Binds a popup to the layer with the passed content and sets up the neccessary event listeners.
|
L |
bindPopup(java.lang.String id,
PopupOptions options)
Binds a popup to the layer with the passed content and sets up the neccessary event listeners.
|
L |
bindTooltip(HTMLElement content,
TooltipOptions options)
Binds a tooltip to the layer with the passed *content and sets up the neccessary event listeners.
|
L |
bindTooltip(java.lang.String content,
TooltipOptions options)
Binds a tooltip to the layer with the passed *content and sets up the neccessary event listeners.
|
L |
bindTooltip(Tooltip content,
TooltipOptions options)
Binds a tooltip to the layer with the passed content and sets up the neccessary event listeners.
|
L |
clearAllEventListeners()
Clear all event listeners.
|
L |
closePopup()
Closes the popup bound to this layer if it is open.
|
L |
closeTooltip()
Closes the tooltip bound to this layer if it is open.
|
L |
fire(java.lang.String type)
Fires an event of the specified type.
|
HTMLElement |
getPane(java.lang.String name)
Returns the HTMLElement representing the named pane on the map.
|
Popup |
getPopup()
Returns the popup bound to this layer.
|
Tooltip |
getTooltip()
Returns the tooltip bound to this layer.
|
boolean |
isPopupOpen()
Returns true if the popup bound to this layer is currently open.
|
boolean |
isTooltipOpen()
Returns true if the tooltip bound to this layer is currently open.
|
java.lang.Boolean |
listens(java.lang.String type)
Returns true if a particular event type has any listeners attached to it.
|
L |
off()
Removes all listener
|
L |
off(java.lang.String type)
Removes a listener
|
L |
off(java.lang.String[] type)
Removes a set of listener
|
L |
on(java.lang.String type,
Function fn)
Adds a set of type/listener pairs.
|
L |
once(java.lang.String type,
Function fn)
the listener will only get fired once and then removed.
|
L |
openPopup(LatLng latlng)
Opens the bound popup at the specificed latlng or at the default popup anchor if no latlng is passed.
|
L |
openTooltip(LatLng latlng)
Opens the bound tooltip at the specificed latlng or at the default tooltip anchor if no latlng is passed.
|
L |
remove()
Removes the tooltip from the map it is currently active on.
|
L |
removeEventParent(Evented obj)
Removes an event parent, so it will stop receiving propagated events
|
L |
removeFrom(Map map)
Removes the tooltip from the given map
|
L |
setPopupContent(HTMLElement content)
Sets the content of the popup bound to this layer.
|
L |
setPopupContent(Popup content)
Sets the content of the popup bound to this layer.
|
L |
setPopupContent(java.lang.String content)
Sets the content of the popup bound to this layer.
|
L |
setTooltipContent(HTMLElement content)
Sets the content of the tooltip bound to this layer.
|
L |
setTooltipContent(java.lang.String content)
Sets the content of the tooltip bound to this layer.
|
L |
setTooltipContent(Tooltip content)
Sets the content of the tooltip bound to this layer.
|
L |
togglePopup()
Opens or closes the popup bound to this layer depending on its current state.
|
L |
toggleTooltip()
Opens or closes the tooltip bound to this layer depending on its current state.
|
L |
unbindPopup()
Removes the popup previously bound with bindPopup.
|
L |
unbindTooltip()
Removes the tooltip previously bound with *bindTooltip.
|
@JsMethod public L bindPopup(HTMLElement content, PopupOptions options)
Layer
@JsMethod public L bindPopup(java.lang.String id, PopupOptions options)
Layer
@JsMethod public L unbindPopup()
Layer
unbindPopup
in interface Layer
@JsMethod public L openPopup(LatLng latlng)
Layer
@JsMethod public L closePopup()
Layer
closePopup
in interface Layer
@JsMethod public L togglePopup()
Layer
togglePopup
in interface Layer
@JsMethod public boolean isPopupOpen()
Layer
isPopupOpen
in interface Layer
@JsMethod public L setPopupContent(java.lang.String content)
Layer
setPopupContent
in interface Layer
@JsMethod public L setPopupContent(HTMLElement content)
Layer
setPopupContent
in interface Layer
@JsMethod public L setPopupContent(Popup content)
Layer
setPopupContent
in interface Layer
@JsMethod public Popup getPopup()
Layer
@JsMethod public L bindTooltip(java.lang.String content, TooltipOptions options)
Layer
bindTooltip
in interface Layer
@JsMethod public L bindTooltip(HTMLElement content, TooltipOptions options)
Layer
bindTooltip
in interface Layer
@JsMethod public L bindTooltip(Tooltip content, TooltipOptions options)
Layer
bindTooltip
in interface Layer
@JsMethod public L unbindTooltip()
Layer
unbindTooltip
in interface Layer
@JsMethod public L openTooltip(LatLng latlng)
Layer
openTooltip
in interface Layer
@JsMethod public L closeTooltip()
Layer
closeTooltip
in interface Layer
@JsMethod public L toggleTooltip()
Layer
toggleTooltip
in interface Layer
@JsMethod public boolean isTooltipOpen()
Layer
isTooltipOpen
in interface Layer
@JsMethod public L setTooltipContent(java.lang.String content)
Layer
setTooltipContent
in interface Layer
@JsMethod public L setTooltipContent(HTMLElement content)
Layer
setTooltipContent
in interface Layer
@JsMethod public L setTooltipContent(Tooltip content)
Layer
setTooltipContent
in interface Layer
@JsMethod public Tooltip getTooltip()
Layer
getTooltip
in interface Layer
@JsMethod public L addTo(Map map)
Layer
@JsMethod public L remove()
Layer
@JsMethod public L removeFrom(Map map)
Layer
removeFrom
in interface Layer
@JsMethod public HTMLElement getPane(java.lang.String name)
Layer
@JsMethod public L clearAllEventListeners()
Evented
clearAllEventListeners
in interface Evented
@JsMethod public L on(java.lang.String type, Function fn)
Evented
@JsMethod public L once(java.lang.String type, Function fn)
Evented
@JsMethod public L off(java.lang.String type)
Evented
@JsMethod public L off(java.lang.String[] type)
Evented
@JsMethod public L fire(java.lang.String type)
Evented
@JsMethod public java.lang.Boolean listens(java.lang.String type)
Evented
@JsMethod public L addEventParent(Evented obj)
Evented
addEventParent
in interface Evented
@JsMethod public L removeEventParent(Evented obj)
Evented
removeEventParent
in interface Evented