@JsType(isNative=true) public class Polyline extends Path
Modifier and Type | Method and Description |
---|---|
L |
addLatLng(LatLng latlng)
Adds a given point to the polyline.
|
LatLngBounds |
getBounds()
Returns the LatLngBounds of the path.
|
LatLng[] |
getLatLngs()
Returns an array of the points in the path.
|
L |
setLatLngs(LatLng[] latlngs)
Sets the lat lngs.
|
LatLng[] |
spliceLatLngs(java.lang.Number index,
java.lang.Number 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).
|
addTo, bindPopup, bindPopup, bindPopup, bringToBack, bringToFront, clearAllEventListeners, closePopup, fire, off, on, once, openPopup, redraw, setStyle, unbindPopup
@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(java.lang.Number index, java.lang.Number 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()