@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(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 |
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.
|
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.
|
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(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.
|
L bindPopup(HTMLElement content, PopupOptions options)
HTMLElement
- the element on which to binds the pop upPopupOptions
- the popup optionsL bindPopup(java.lang.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(java.lang.String content)
String
- content of the popup as a StringL setPopupContent(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(java.lang.String content, TooltipOptions options)
String
- the tooltip content as a stringTooltipOptions
- the options object of this tooltipL bindTooltip(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(java.lang.String content)
String
- the content of the tooltip as a stringL setTooltipContent(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 toolltipHTMLElement getPane(java.lang.String name)
Map
- the map object from which to remove this toolltip