@JsType(isNative=true)
public interface Layer
Modifier and Type | Method and Description |
---|---|
L |
addTo(Map map)
Adds the tooltip to the given map
|
L |
bindPopup(elemental2.dom.HTMLElement content,
PopupOptions options)
Binds a popup to the layer with the passed content and sets up the neccessary event listeners.
|
L |
bindPopup(String id,
PopupOptions options)
Binds a popup to the layer with the passed content and sets up the neccessary event listeners.
|
L |
bindTooltip(elemental2.dom.HTMLElement content,
TooltipOptions options)
Binds a tooltip to the layer with the passed *content and sets up the neccessary event listeners.
|
L |
bindTooltip(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 |
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.
|
elemental2.dom.HTMLElement |
getPane(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.
|
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 |
removeFrom(Map map)
Removes the tooltip from the given map
|
L |
setPopupContent(elemental2.dom.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(String content)
Sets the content of the popup bound to this layer.
|
L |
setTooltipContent(elemental2.dom.HTMLElement content)
Sets the content of the tooltip bound to this layer.
|
L |
setTooltipContent(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.
|
L bindPopup(elemental2.dom.HTMLElement content, PopupOptions options)
HTMLElement
- the element on which to binds the pop upPopupOptions
- the popup optionsL bindPopup(String id, PopupOptions options)
String
- the id of the elementPopupOptions
- the popup optionsL unbindPopup()
L openPopup(LatLng latlng)
LatLng
- the latlng where to open the pop upL closePopup()
L togglePopup()
boolean isPopupOpen()
L setPopupContent(String content)
String
- content of the popup as a StringL setPopupContent(elemental2.dom.HTMLElement content)
HTMLElement
- content of the popup as a HTMLElementL setPopupContent(Popup content)
HTMLElement
- content of the popup as a Popup ObjectPopup getPopup()
L bindTooltip(String content, TooltipOptions options)
String
- the tooltip content as a stringTooltipOptions
- the options object of this tooltipL bindTooltip(elemental2.dom.HTMLElement content, TooltipOptions options)
HTMLElement
- the tooltip content as a HTMLElement objectTooltipOptions
- the options object of this tooltipL bindTooltip(Tooltip content, TooltipOptions options)
HTMLElement
- the tooltip content as a ToolTip objectTooltipOptions
- the options object of this tooltipL unbindTooltip()
L openTooltip(LatLng latlng)
LatLng
- the latlng where the tooltip is openedL closeTooltip()
L toggleTooltip()
boolean isTooltipOpen()
L setTooltipContent(String content)
String
- the content of the tooltip as a stringL setTooltipContent(elemental2.dom.HTMLElement content)
HTMLElement
- the content of the tooltip as a HTMLELement objectL setTooltipContent(Tooltip content)
Tooltip
- the content of the tooltip as a Tooltip objectTooltip getTooltip()
L addTo(Map map)
Map
- the map object to which to add this toolltipL remove()
L removeFrom(Map map)
Map
- the map object from which to remove this toolltipelemental2.dom.HTMLElement getPane(String name)
Map
- the map object from which to remove this toolltipCopyright © 2018 G-Widgets. All rights reserved.