Module: cercaliagl/Feature


Classes

Feature

Type Definitions

FeatureOptions{Object}

Properties:
Name Type Argument Description
id string <optional>

Feature id

editable boolean <optional>

Feature editable using mouse. Default false.

fillColor string <optional>

Feature fill color. Default value #009BFF.

fillOpacity number <optional>

Feature fill opacity. Default value 0.2.

strokeOpacity number <optional>

Feature stroke opacity. Default value 1.

strokeColor string <optional>

Feature stroke color. Default value #2196F3.

strokeWidth number <optional>

Feature stroke width. Default value 7.

outline boolean <optional>

Enable outline feature property. If no outline required, specify null. Default value true.

outlineColor string <optional>

Feature outline color. Default value #040252.

outlineOpacity number <optional>

Feature outline opacity. Default value 1.

outlineWidth number <optional>

Feature outline width. Default value 9.

visible boolean <optional>

Feature visible or not. Default true.

string encodedGoogleLineString <optional>

Linestring wkt encoded on google polyline .

string encodedGooglePolygon <optional>

Polygon wkt encoded on google polyline .

visible boolean <optional>

Feature visible or not. Default true.

onClick function <optional>

Function to execute on marker click.

onDoubleClick function <optional>

Function to execute on marker double click.

onMouseOut function <optional>

Function to execute on Mouse Out.

onMouseOver function <optional>

Function to execute on Mouse Over.

onMouseMove function <optional>

Function to execute on Mouse Over.

onRightClick function <optional>

Function to execute on marker right click.

onModifyStart function <optional>

Function to execute on marker right click.

onModifyEnd function <optional>

Function to execute on modify end. When feature is editable.

wkt string <optional>

WKT String with shape geometry to be painted. Mandatory to use that or geometry property. More info: https://es.wikipedia.org/wiki/Well_Known_Text

simpleLabel module:cercaliagl/SimpleLabel~SimpleLabel <optional>

Marker Simple Label object.

geometry module:cercaliagl/util~GeometryGeoJSON <optional>

GeoJSON Geometry. Mandatory to use this property or wkt property. More info: https://geojson.org/ (From geometry property).

zIndex number <optional>

Z-Index. Default 0.