Modifier | Constructor and Description |
---|---|
protected |
Polyline() |
Modifier and Type | Method and Description |
---|---|
L |
addEventParent(Evented obj)
Adds an event parent - an Evented that will receive propagated events
|
L |
addLatLng(LatLng latlng)
Adds a given point to the polyline.
|
L |
addTo(Map map)
Adds the layer to the map.
|
L |
bindPopup(elemental2.dom.HTMLElement content,
PopupOptions options)
Binds a popup with a particular HTML content to a click on this path.
|
L |
bindPopup(String id,
PopupOptions options)
Bind popup.
|
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 |
clearAllEventListeners()
Clear all event listeners.
|
L |
closePopup()
Closes the path's bound popup if it is opened.
|
L |
closeTooltip()
Closes the tooltip bound to this layer if it is open.
|
L |
fire(String type)
Fires an event of the specified type.
|
LatLngBounds |
getBounds()
Returns the LatLngBounds of the path.
|
LatLng[][] |
getLatLngs()
Returns an array of the points in the path.
|
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.
|
Boolean |
listens(String type)
Returns true if a particular event type has any listeners attached to it.
|
L |
off()
Removes all listener
|
L |
off(String type)
Removes a listener
|
L |
off(String[] type)
Removes a set of listener
|
L |
on(String type,
EventCallback fn)
Adds a set of type/listener pairs.
|
L |
once(String type,
EventCallback fn)
the listener will only get fired once and then removed.
|
L |
openPopup(LatLng latlng)
Opens the popup previously bound by the bindPopup method in the given point, or in one of the path's points if not specified.
|
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 |
setLatLngs(LatLng[] latlngs)
Sets the lat lngs.
|
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.
|
LatLng[] |
spliceLatLngs(double index,
double pointsToRemove,
LatLng latlng)
Allows adding, removing or replacing points in the polyline.
|
com.google.gwt.core.client.JavaScriptObject |
toGeoJSON()
Returns a GeoJSON representation of the polyline (GeoJSON LineString Feature).
|
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()
Unbind popup.
|
L |
unbindTooltip()
Removes the tooltip previously bound with *bindTooltip.
|
bindPopup, bringToBack, bringToFront, redraw, setStyle
@JsMethod public L addLatLng(LatLng latlng)
latlng
- the latlng@JsMethod public L setLatLngs(LatLng[] latlngs)
latlngs
- the latlngs@JsMethod public LatLng[][] getLatLngs()
@JsMethod public LatLng[] spliceLatLngs(double index, double pointsToRemove, LatLng latlng)
index
- the indexpointsToRemove
- the points to removelatlng
- the latlng@JsMethod public LatLngBounds getBounds()
Path
@JsMethod public com.google.gwt.core.client.JavaScriptObject toGeoJSON()
@JsMethod public L bindPopup(elemental2.dom.HTMLElement content, PopupOptions options)
Path
@JsMethod public L bindPopup(String id, PopupOptions options)
Path
@JsMethod public L unbindPopup()
Path
unbindPopup
in interface Layer
unbindPopup
in class Path
@JsMethod public L openPopup(LatLng latlng)
Path
@JsMethod public L closePopup()
Path
closePopup
in interface Layer
closePopup
in class Path
@JsMethod public L togglePopup()
Layer
togglePopup
in interface Layer
@JsMethod public boolean isPopupOpen()
Layer
isPopupOpen
in interface Layer
@JsMethod public L setPopupContent(String content)
Layer
setPopupContent
in interface Layer
@JsMethod public L setPopupContent(elemental2.dom.HTMLElement content)
Layer
setPopupContent
in interface Layer
@JsMethod public L setPopupContent(Popup content)
Layer
setPopupContent
in interface Layer
@JsMethod public Popup getPopup()
Layer
public L bindTooltip(String content, TooltipOptions options)
Layer
bindTooltip
in interface Layer
public L bindTooltip(elemental2.dom.HTMLElement content, TooltipOptions options)
Layer
bindTooltip
in interface Layer
public L bindTooltip(Tooltip content, TooltipOptions options)
Layer
bindTooltip
in interface Layer
public L unbindTooltip()
Layer
unbindTooltip
in interface Layer
public L openTooltip(LatLng latlng)
Layer
openTooltip
in interface Layer
public L closeTooltip()
Layer
closeTooltip
in interface Layer
public L toggleTooltip()
Layer
toggleTooltip
in interface Layer
public boolean isTooltipOpen()
Layer
isTooltipOpen
in interface Layer
public L setTooltipContent(String content)
Layer
setTooltipContent
in interface Layer
public L setTooltipContent(elemental2.dom.HTMLElement content)
Layer
setTooltipContent
in interface Layer
public L setTooltipContent(Tooltip content)
Layer
setTooltipContent
in interface Layer
public Tooltip getTooltip()
Layer
getTooltip
in interface Layer
public L remove()
Layer
public L removeFrom(Map map)
Layer
removeFrom
in interface Layer
public elemental2.dom.HTMLElement getPane(String name)
Layer
public L clearAllEventListeners()
Evented
clearAllEventListeners
in interface Evented
public L on(String type, EventCallback fn)
Evented
public L once(String type, EventCallback fn)
Evented
public L off(String[] type)
Evented
public L fire(String type)
Evented
public Boolean listens(String type)
Evented
public L addEventParent(Evented obj)
Evented
addEventParent
in interface Evented
public L removeEventParent(Evented obj)
Evented
removeEventParent
in interface Evented
Copyright © 2018 G-Widgets. All rights reserved.