Class: Crossing

.xyz.maps.editor.features. Crossing

The interface that represents crossings(links cross with each other) and crossing candidates(another link is close
enough to a shape point of this link, check intersectionScale)

Members Summary

class :String

the feature class of the crossing. Can be either CROSSING or CROSSING_CANDIDATE.

distance :Number

The distance between two points which will be connected on current and related links.

x :Number

Position of this crossing or crossing candidate in Pixel on x axis.

y :Number

Position of this crossing or crossing candidate in Pixel on y axis.

Methods Summary

connect() → {Array.<here.xyz.maps.editor.features.Crossing>}

Connect the current link with the related link at this crossing or crossing candidate. After connecting the
crossing, it will also recalculate crossings.
Get NAVLINK objects which connect to this crossing or crossing candidate.
Get the NAVLINK object which is representing the link this crossing or crossing candidate is located on.
Get the NAVLINK object which is representing the link the current link will be connected to.

hide()

Hide this crossing or crossing candidate on the map.

show()

Show this crossing or crossing candidate on the map.

Members Details

class :String

the feature class of the crossing. Can be either CROSSING or CROSSING_CANDIDATE.
Type:
String

distance :Number

The distance between two points which will be connected on current and related links.
Type:
Number

x :Number

Position of this crossing or crossing candidate in Pixel on x axis.
Type:
Number

y :Number

Position of this crossing or crossing candidate in Pixel on y axis.
Type:
Number

Methods Details

connect() → {Array.<here.xyz.maps.editor.features.Crossing>}

Connect the current link with the related link at this crossing or crossing candidate. After connecting the
crossing, it will also recalculate crossings.
Returns:
Type:
Array.<here.xyz.maps.editor.features.Crossing>
Get NAVLINK objects which connect to this crossing or crossing candidate.
Returns:
Type:
Array.<here.xyz.maps.editor.features.Navlink>
Get the NAVLINK object which is representing the link this crossing or crossing candidate is located on.
Returns:
Type:
here.xyz.maps.editor.features.Navlink
Get the NAVLINK object which is representing the link the current link will be connected to.
Returns:
Type:
here.xyz.maps.editor.features.Navlink

hide()

Hide this crossing or crossing candidate on the map.

show()

Show this crossing or crossing candidate on the map.