Class eniro.maps.Polyline
Extends
eniro.maps.Drawn.
Defined in: Polyline.js.
Constructor Attributes | Constructor Name and Description |
---|---|
eniro.maps.Polyline(opts)
A Polyline is a connected set of strings.
|
Method Attributes | Method Name and Description |
---|---|
getPath()
Returns the drawn path.
|
|
setFillColor(fillColor)
Throws exception.
|
|
setFillOpacity(fillColor)
Throws exception.
|
|
setOptions(opts)
Sets all options using an options object.
|
|
setPath(path)
Sets the path to draw.
|
- Methods borrowed from class eniro.maps.Drawn:
- getFillColor, getFillOpacity, getMap, getStrokeColor, getStrokeOpacity, getStrokeWeight, getZIndex, setMap, setStrokeColor, setStrokeOpacity, setStrokeWeight, setZIndex
- Events borrowed from class eniro.maps.Drawn:
- click, mouseout, mouseover
Class Detail
eniro.maps.Polyline(opts)
A Polyline is a connected set of strings.
Constructs from the given array.
- Parameters:
- {PolylineOptions} opts
- creates a line from the given options.
Method Detail
{eniro.maps.MapArray}
getPath()
Returns the drawn path.
setFillColor(fillColor)
Throws exception.
- Parameters:
- fillColor
setFillOpacity(fillColor)
Throws exception.
- Parameters:
- fillColor
setOptions(opts)
Sets all options using an options object.
- Parameters:
- {PolylineOptions} opts
- wrapper object of options.
setPath(path)
Sets the path to draw. Can either be an array of eniro.maps.LatLng or a eniro.maps.MapArray of
eniro.maps.LatLng. Either way the array will be wrapped in a eniro.maps.MapArray and changes to this
array will be imediatelly reflected in the drawn shape.
- Parameters:
- {eniro.maps.MapArray|Array} path
- the path to draw.