Bounding box of the feature. The value of the bbox member is an array of length 4, with all axes of the most southwesterly point followed by all axes of the more northeasterly point. The "bbox" values define shapes with edges that follow lines of constant longitude and latitude.
The feature class of an Navlink Feature is "NAVLINK".
A geometry is a object where the type member's value is one of: "Point", "MultiPoint", "LineString", "MultiLineString", "Polygon" or "MultiPolygon". A geometry object must have a member with the name "coordinates". The value of the coordinates member is always an array (referred to as the coordinates array below). The structure for the elements in this array are determined by the type of geometry.
For type "Point", each element in the coordinates array is a number representing the point coordinate in one dimension. There must be at least two elements, and may be more. The order of elements must follow x, y, z order (or longitude, latitude, altitude for coordinates in a geographic coordinate reference system).
For type "MultiPoint", each element in the coordinates array is a coordinates array as described for type "Point".
For type "LineString", each element in the coordinates array is a coordinates array as described for type "Point". The coordinates array for a LineString must have two or more elements. A LinearRing is a special case of type LineString where the first and last elements in the coordinates array are equivalent (they represent equivalent points). Though a LinearRing is not explicitly represented as a geometry type, it is referred to in the Polygon geometry type definition.
For type "MultiLineString", each element in the coordinates array is a coordinates array as described for type "LineString".
For type "Polygon", each element in the coordinates array is a coordinates array as described for type "LineString". Furthermore, each LineString in the coordinates array must be a LinearRing. For Polygons with multiple LinearRings, the first must be the exterior ring and any others must be interior rings or holes.
For type "MultiPolygon", each element in the coordinates array is a coordinates array as described for type "Polygon".
Point:
{
"type": "Point",
"coordinates": [100.0, 0.0]
}
Polygon:
{
"type": "Polygon",
"coordinates": [
[ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0] ]
]
}
id of the feature.
The Properties of the feature
The type of the feature is a string with 'Feature' as its value.
Add a new shape-point / coordinate to the Navlink.
the coordinate of the new shape to add.
the index position in the coordinate array of the LineString where the new shape point should be inserted.
index of the shape or false if shape could not be added
Set the behavior options.
Snap coordinates to Navlink geometry nearby.
Set the value of a specific behavior option.
Get the value of a specific behavior option.
Get the behavior options.
Snap coordinates to Navlink geometry nearby.
Checks for possible crossing geometry with other Navlink features.
options to configure the crossing check.
Class of the crossing to check for. If no class is defined 'CROSSING' and 'CROSSING_CANDIDATE' is checked for.
Style of the crossings they should be displayed with. 6 configurable styling objects('connector1', 'connector2', 'connector3', 'search1', 'search2', 'found') comprise a crossing.
array of found crossings
Get the geographical coordinate(s) of the Navlink feature.
Set the geographical coordinate(s) of the Navlink feature.
the geographical coordinates that should be set.
Get a specific EditState of the feature.
the "EditState" to retrieve its value.
the value of the respective "EditState".
Displays and allows editing of the "turn restrictions" for the node/shape-point at the "index" of the Navlink feature. The index must be the respective index in the coordinates array of the first (0) or last coordinate of the Navlink.
the index of the node to display the turn restrictions for.
the TurnRestrictionEditor for the respective shape/node.
Displays and allows editing of all "turn restrictions" for the start and end node of the Navlink feature.
Array containing the TurnRestrictionEditor for the start-node and end-node (shape-points).
Define if the feature should be editable by the Editor module or not.
True, the feature can be edited, otherwise false.
Get connected Navlink Features for the node. A node is either the Start or End coordinate of the Navlink (LineString) geometry.
coordinate index for shape/node. 0 -> "start node", or index of last coordinate for the "end node".
Array that's containing the connected Navlink Features.
Get connected Navlink Features for the node. A node is either the Start or End coordinate of the Navlink (LineString) geometry.
coordinate index for shape/node. 0 -> "start node", or index of last coordinate for the "end node".
flag to enable detailed information of the connected Navlinks.
Array of detailed connected Navlink information including the shape/node index of connected link.
Get The FeatureProvider where the Feature is stored in.
Returns an array of Boolean values indicating whether the corresponding shape is selected at coordinate-index or not.
Get the z-levels for the coordinates of the Navlink feature.
The Array of z-levels for the coordinates of the Navlink.
Get the z-level for a specific coordinate of the Navlink feature.
The z-level of the coordinate at the index of the feature's coordinate array.
Get a deep copy of the properties of the feature
Get the value of a specific property
name of the property
the value of the specific property
Set the value for a specific property
name of the property
the value that should be set for the property
Set one or more properties of the object.
the properties object literal that should be merged with the existing properties.
Remove the feature.
Select and highlight the feature. Selected features geometry is displayed and can easily be modified by mouse/touch interaction.
Sets the radius of the geofence.
The geofence radius in pixel.
Sets the selected state of the shapes at their respective coordinate-indices.
Array of Boolean values indicating whether the corresponding shape is selected at index or not
Set the z-levels for the coordinates of the Navlink Feature. For each coordinate of the Navlink, the respective z-level must be provided.
The z-levels to be set for the coordinates of the Navlink.
Show or hide the direction hint on the Navlink feature. If the function is called without arguments, the hint will be hidden.
direction of the Navlink, possible value: "BOTH"|"START_TO_END"|"END_TO_START"
indicates if the Start and End shapepoints of the Navlink should be displayed or not
Get default or current style of the feature.
indicates which style to return. "default" -> layer default style for the feature or the "current" applied style.
the style of the feature
Apply style to the feature.
the style to set for the feature
Get the Feature as a JSON Object.
Enable Transform Utility to allow easy geometry transformation of the feature (move/scale/rotate) by mouse/touch interaction.
Unselect the feature.
Generated using TypeDoc
The Navlink Feature is a generic editable Feature with "LineString" geometry. In addition to the Line Feature, the Navlink feature can be linked/associated with other Navlink Features. A Navlink Feature also can be referenced by Addresses and Places. A Navlink is part of a "road nertwork".
The Feature can be edited with the Editor.