-
Name Type Description optionsName Type Description idstring Feature id
editableboolean Feature editable using mouse. Default
false.fillColorstring Feature fill color. Default value
#009BFF.fillOpacitynumber Feature fill opacity. Default value
0.2.strokeOpacitynumber Feature stroke opacity. Default value
1.strokeColorstring Feature stroke color. Default value
#2196F3.strokeWidthnumber Feature stroke width. Default value
7.outlineboolean Enable outline feature property. If no outline required, specify null. Default value
true.outlineColorstring Feature outline color. Default value
#040252.outlineOpacitynumber Feature outline opacity. Default value
1.outlineWidthnumber Feature outline width. Default value
9.visibleboolean Feature visible or not. Default
true.encodedLineStringstring Encoded wkt linestring polyline.
encodedPolygonstring Encoded polygon polyline wkt.
encodedMultiPolygonArray.<string> Array of encoded wkt polygons.
encodedGoogleLineStringstring Linestring wkt encoded on google polyline .
encodedGooglePolygonstring Polygon wkt encoded on google polyline .
encodedGoogleMultiPolygonArray.<string> Array of polygon wkts encoded on google polyline .
visibleboolean Feature visible or not. Default
true.onClickfunction Function to execute on marker click.
onDoubleClickfunction Function to execute on marker double click.
onMouseOutfunction Function to execute on Mouse Out.
onMouseOverfunction Function to execute on Mouse Over.
onMouseMovefunction Function to execute on Mouse Over.
onRightClickfunction Function to execute on marker right click.
onModifyStartfunction Function to execute on marker right click.
onModifyEndfunction Function to execute on modify end. When feature is
editable.wktstring WKT String with shape geometry to be painted. Mandatory to use that or
geometryproperty. More info: https://es.wikipedia.org/wiki/Well_Known_TextsimpleLabelmodule:cercaliagl/SimpleLabel~SimpleLabel Marker Simple Label object.
geometrymodule:cercaliagl/util~Polygon GeoJSON Geometry. Mandatory to use this property or
wktproperty. More info: https://geojson.org/ (Fromgeometryproperty).zIndexnumber Z-Index. Default 0.
extraPropertiesObject.<string, string> Extra properties to put inside geojson. Default {}.
encodedPrecisionnumber Precision of encoded data. Default 5.
heightnumber Default 0.
showDirectionboolean Default
false.
Extends
Members
-
onModifyEnd{function} {null}
-
Optional callback for when modification ends
-
onModifyStart{function} {null}
-
Optional callback for when modification starts
Methods
-
Name Type Description geojsonFeatureObject GeoJSON feature
featureOptionsFeature options
Name Type Description idstring Feature id
editableboolean Feature editable using mouse. Default
false.fillColorstring Feature fill color. Default value
#009BFF.fillOpacitynumber Feature fill opacity. Default value
0.2.strokeOpacitynumber Feature stroke opacity. Default value
1.strokeColorstring Feature stroke color. Default value
#2196F3.strokeWidthnumber Feature stroke width. Default value
7.outlineboolean Enable outline feature property. If no outline required, specify null. Default value
true.outlineColorstring Feature outline color. Default value
#040252.outlineOpacitynumber Feature outline opacity. Default value
1.outlineWidthnumber Feature outline width. Default value
9.visibleboolean Feature visible or not. Default
true.encodedLineStringstring Encoded wkt linestring polyline.
encodedPolygonstring Encoded polygon polyline wkt.
encodedMultiPolygonArray.<string> Array of encoded wkt polygons.
encodedGoogleLineStringstring Linestring wkt encoded on google polyline .
encodedGooglePolygonstring Polygon wkt encoded on google polyline .
encodedGoogleMultiPolygonArray.<string> Array of polygon wkts encoded on google polyline .
visibleboolean Feature visible or not. Default
true.onClickfunction Function to execute on marker click.
onDoubleClickfunction Function to execute on marker double click.
onMouseOutfunction Function to execute on Mouse Out.
onMouseOverfunction Function to execute on Mouse Over.
onMouseMovefunction Function to execute on Mouse Over.
onRightClickfunction Function to execute on marker right click.
onModifyStartfunction Function to execute on marker right click.
onModifyEndfunction Function to execute on modify end. When feature is
editable.wktstring WKT String with shape geometry to be painted. Mandatory to use that or
geometryproperty. More info: https://es.wikipedia.org/wiki/Well_Known_TextsimpleLabelmodule:cercaliagl/SimpleLabel~SimpleLabel Marker Simple Label object.
geometrymodule:cercaliagl/util~Polygon GeoJSON Geometry. Mandatory to use this property or
wktproperty. More info: https://geojson.org/ (Fromgeometryproperty).zIndexnumber Z-Index. Default 0.
extraPropertiesObject.<string, string> Extra properties to put inside geojson. Default {}.
encodedPrecisionnumber Precision of encoded data. Default 5.
heightnumber Default 0.
showDirectionboolean Default
false. -
Gets a value.
Name Type Description keystring Key name.
Returns:
Value.
-
Get feature bounds.
-
Get closest feature coordinate giving a position.
Name Type Description positionmodule:cercaliagl/LonLat~LonLat Position
Returns:
Closest coordinate to point
-
Get extra properties
Returns:
Extra properties
-
Returns:
Return color in hexadecimal format. For example#ff0000
-
Get fill opacity
Returns:
Values between0and1.
-
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 between0and1.
-
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 between0and1.
-
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:
Returntrueif feature is visible
-
Sets a value.
Name Type Description keystring Key name.
value* Value.
-
Set editable feature
Name Type Description editableboolean trueto become editable feature. -
Set extra properties
Name Type Description propertiesObject.<string, string> Extra properties
-
Change feature fill color
Name Type Description colorstring Color in hexadecimal format. For example:
#ff0000. -
Fill opacity.
Name Type Description opacitynumber Values between
0and1. -
Set geometry and update it.
Name Type Description geometryGeometry
Name Type Description type'Polygon' Must be 'Polygon'
coordinatesArray.<Array.<Array.<number>>> The coordinates array
-
Name Type Description mapmodule:cercaliagl/Map~Map Map
-
Change feature outline color
Name Type Description colorstring Color in hexadecimal format. For example:
#ff0000. -
Change outline opacity
Name Type Description opacitynumber Opacity. Values between
0and1. -
Change feature outline width
Name Type Description widthnumber Width.
-
Set show direction feature
Name Type Description showDirectionboolean trueto show feature's direction. -
Set simple label and update it on map.
Name Type Description simpleLabelmodule:cercaliagl/SimpleLabel~SimpleLabel | null simple Label
-
Change feature stroke color
Name Type Description colorstring Color in hexadecimal format. For example:
#ff0000. -
Stroke opacity.
Name Type Description opacitynumber Values between
0and1. -
Change feature stroke width
Name Type Description widthnumber Width.
-
Show or hide feature.
Name Type Description visibleboolean Visible
true, not visiblefalse. -
Set geometry in WKT format and update it on map.
Name Type Description wktstring WKT geometry
-
Set zIndex and update it.
Name Type Description zIndexnumber zIndex