Class: Linestring

cercalia.Linestring

LineString Calss. This class lets you create a LineString on the map, with a defined style.

new cercalia.Linestring(options)

Name Type Description
options

Opciones del label

Name Type Description
draggable boolean | undefined optional

Boolean indicating if dragging is being enabled.

path Array.<cercalia.LonLat>

LineString coordinates.

strokeColor string

Line color. Default '#00ff00'.

strokeOpacity number

Line opacity. Value between 0 and 1. Default value 0.75.

strokeWidth number | undefined optional

Line width. Default value 5.

zIndex number | undefined optional

Z-Index. Default value 100.

Methods

Destroy the object and its atributes to clean up memory

Returns:
LineString extension
Returns:
Object ClassName.
Returns:
Objeto OpenLayers3 ol.Feature

Returns Linestring path

Returns:
path
Returns:
Current line color
Returns:
Line opacity. Values between [0..1]
Returns:
line width.
Returns:
CSS zIndex del Linestring
Returns:
If feature is draggable or not. Values true o false.
Name Type Description
draggable boolean
Name Type Description
map cercalia.Map

Change Linestring path sended by parameter

Name Type Description
path Array.<cercalia.LonLat>

Change the line color

Name Type Description
strokeColor string

setStrokeOpacity(strokeOpacity)

Change the line opacity (0-1)

Name Type Description
strokeOpacity number

Change line width

Name Type Description
strokeWidth number

Change the zIndex

Name Type Description
zIndex number