@JsType(isNative=true) public abstract class Path extends Object
Constructor and Description |
---|
Path() |
Modifier and Type | Method and Description |
---|---|
L |
addTo(Map map)
Adds the layer to the map.
|
L |
bindPopup(elemental2.dom.HTMLElement el,
PopupOptions options)
Binds a popup with a particular HTML content to a click on this path.
|
L |
bindPopup(Popup popup,
PopupOptions options)
Binds a popup with a particular HTML content to a click on this path.
|
L |
bindPopup(String html,
PopupOptions options)
Bind popup.
|
L |
bringToBack()
Brings the layer to the bottom of all path layers.
|
L |
bringToFront()
Brings the layer to the top of all path layers.
|
L |
closePopup()
Closes the path's bound popup if it is opened.
|
LatLngBounds |
getBounds()
Returns the LatLngBounds of the path.
|
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 |
redraw()
Redraws the layer.
|
L |
setStyle(PathOptions object)
Changes the appearance of a Path based on the options in the Path options object.
|
L |
unbindPopup()
Unbind popup.
|
@JsMethod public L addTo(Map map)
map
- the map@JsMethod public L bindPopup(String html, PopupOptions options)
html
- the htmloptions
- the options@JsMethod public L bindPopup(elemental2.dom.HTMLElement el, PopupOptions options)
el
- the elementoptions
- the options@JsMethod public L bindPopup(Popup popup, PopupOptions options)
popup
- the popupoptions
- the options@JsMethod public L unbindPopup()
@JsMethod public L openPopup(LatLng latlng)
latlng
- the latlng@JsMethod public L closePopup()
@JsMethod public L setStyle(PathOptions object)
object
- the object@JsMethod public LatLngBounds getBounds()
@JsMethod public L bringToFront()
@JsMethod public L bringToBack()
@JsMethod public L redraw()
Copyright © 2018 G-Widgets. All rights reserved.