-
Name Type Description options
Name Type Description id
string Feature id
editable
boolean Feature editable using mouse. Default
false
.fillColor
string Feature fill color. Default value
#009BFF
.fillOpacity
number Feature fill opacity. Default value
0.2
.strokeOpacity
number Feature stroke opacity. Default value
1
.strokeColor
string Feature stroke color. Default value
#2196F3
.strokeWidth
number Feature stroke width. Default value
7
.outline
boolean Enable outline feature property. If no outline required, specify null. Default value
true
.outlineColor
string Feature outline color. Default value
#040252
.outlineOpacity
number Feature outline opacity. Default value
1
.outlineWidth
number Feature outline width. Default value
9
.visible
boolean Feature visible or not. Default
true
.string
encodedGoogleLineString Linestring wkt encoded on google polyline .
string
encodedGooglePolygon Polygon wkt encoded on google polyline .
visible
boolean Feature visible or not. Default
true
.onClick
function Function to execute on marker click.
onDoubleClick
function Function to execute on marker double click.
onMouseOut
function Function to execute on Mouse Out.
onMouseOver
function Function to execute on Mouse Over.
onMouseMove
function Function to execute on Mouse Over.
onRightClick
function Function to execute on marker right click.
onModifyStart
function Function to execute on marker right click.
onModifyEnd
function Function to execute on modify end. When feature is
editable
.wkt
string WKT String with shape geometry to be painted. Mandatory to use that or
geometry
property. More info: https://es.wikipedia.org/wiki/Well_Known_TextsimpleLabel
module:cercaliagl/SimpleLabel~SimpleLabel Marker Simple Label object.
geometry
module:cercaliagl/util~GeometryGeoJSON GeoJSON Geometry. Mandatory to use this property or
wkt
property. More info: https://geojson.org/ (Fromgeometry
property).zIndex
number Z-Index. Default 0.
Extends
Methods
-
Name Type Description geojsonFeature
Object GeoJSON feature
featureOptions
Feature options
Name Type Description id
string Feature id
editable
boolean Feature editable using mouse. Default
false
.fillColor
string Feature fill color. Default value
#009BFF
.fillOpacity
number Feature fill opacity. Default value
0.2
.strokeOpacity
number Feature stroke opacity. Default value
1
.strokeColor
string Feature stroke color. Default value
#2196F3
.strokeWidth
number Feature stroke width. Default value
7
.outline
boolean Enable outline feature property. If no outline required, specify null. Default value
true
.outlineColor
string Feature outline color. Default value
#040252
.outlineOpacity
number Feature outline opacity. Default value
1
.outlineWidth
number Feature outline width. Default value
9
.visible
boolean Feature visible or not. Default
true
.string
encodedGoogleLineString Linestring wkt encoded on google polyline .
string
encodedGooglePolygon Polygon wkt encoded on google polyline .
visible
boolean Feature visible or not. Default
true
.onClick
function Function to execute on marker click.
onDoubleClick
function Function to execute on marker double click.
onMouseOut
function Function to execute on Mouse Out.
onMouseOver
function Function to execute on Mouse Over.
onMouseMove
function Function to execute on Mouse Over.
onRightClick
function Function to execute on marker right click.
onModifyStart
function Function to execute on marker right click.
onModifyEnd
function Function to execute on modify end. When feature is
editable
.wkt
string WKT String with shape geometry to be painted. Mandatory to use that or
geometry
property. More info: https://es.wikipedia.org/wiki/Well_Known_TextsimpleLabel
module:cercaliagl/SimpleLabel~SimpleLabel Marker Simple Label object.
geometry
module:cercaliagl/util~GeometryGeoJSON GeoJSON Geometry. Mandatory to use this property or
wkt
property. More info: https://geojson.org/ (Fromgeometry
property).zIndex
number Z-Index. Default 0.
-
Gets a value.
Name Type Description key
string Key name.
Returns:
Value.
-
Get feature bounds.
-
Get closest feature coordinate giving a position.
Name Type Description position
LonLat Position
Returns:
Closest coordinate to point
-
Name Type Description color
* Return color in hexadecimal format. For example
#ff0000
-
Get fill opacity
Returns:
Values between0
and1
.
-
Returns:
GeoJSON
-
Get feature Geometry
Returns:
Geometry
-
Returns:
GeoJSON
-
Returns:
Id
-
Returns:
Layer
-
Returns:
Map
-
Returns:
Return color in hexadecimal format. For example#ff0000
-
Get opacity
Returns:
Opacity. Values between0
and1
.
-
Get outline width
Returns:
Width.
-
Get simple label object. Returns `nullp if it doesn't exist.
Returns:
Simple label
-
Returns:
Return color in hexadecimal format. For example#ff0000
-
Get stroke opacity
Returns:
Values between0
and1
.
-
Returns:
Width.
-
Get geometry in WKT format.
Returns:
Geometry in WKT format
-
Obtain if feature is editable.
Returns:
is editable
-
Obtain if feature is showing direction.
Returns:
is showing direction
-
Obtain if feature is visible
Returns:
Returntrue
if feature is visible
-
Sets a value.
Name Type Description key
string Key name.
value
* Value.
silent
boolean Update without triggering an event.
-
Set editable feature
Name Type Description editable
boolean true
to become editable feature. -
Change feature fill color
Name Type Description color
string Color in hexadecimal format. For example:
#ff0000
. -
Fill opacity.
Name Type Description opacity
number Values between
0
and1
. -
Set geometry and update it.
Name Type Description geometry
Geometry
Name Type Description type
string Geometry type
coordinates
Array.<number> | Array.<Array.<number>> | Array.<Array.<Array.<number>>> -
Name Type Description map
module:cercaliagl/Map~Map Map
-
Change feature outline color
Name Type Description color
string Color in hexadecimal format. For example:
#ff0000
. -
Change outline opacity
Name Type Description opacity
number Opacity. Values between
0
and1
. -
Change feature outline width
Name Type Description width
number Width.
-
Set show direction feature
Name Type Description showDirection
boolean true
to show feature's direction. -
Set simple label and update it on map.
Name Type Description simpleLabel
module:cercaliagl/SimpleLabel~SimpleLabel | null simple Label
-
Change feature stroke color
Name Type Description color
string Color in hexadecimal format. For example:
#ff0000
. -
Stroke opacity.
Name Type Description opacity
number Values between
0
and1
. -
Change feature stroke width
Name Type Description width
number Width.
-
Show or hide feature.
Name Type Description visible
boolean Visible
true
, not visiblefalse
. -
Set geometry in WKT format and update it on map.
Name Type Description wkt
WKT geometry
Name Type Description type
string Geometry type
coordinates
Array.<number> | Array.<Array.<number>> | Array.<Array.<Array.<number>>> -
Set zIndex and update it.
Name Type Description zIndex
number zIndex