XYZ Maps Documentation
    Preparing search index...

    The Crossing represents the intersection point of 2 Navlink geometries. A Crossing feature is an indication for a Road Intersection an can be used to detect and create missing intersections in a road network. In case of 2 Navlink geometries are located very close to each other (but not intersecting), the Crossing represents a "CROSSING_CANDIDATE". The threshold for the candidate detection can be configured with EditorOptions.intersectionScale

    Implements

    Index
    class: "CROSSING" | "CROSSING_CANDIDATE"

    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.

    geometry: {
        coordinates: GeoJSONCoordinate | GeoJSONCoordinate[];
        type: "Point" | "LineString";
    }

    The geometry of the Crossing feature.

    Type Declaration

    • coordinates: GeoJSONCoordinate | GeoJSONCoordinate[]

      The coordinates of the crossing feature.

    • type: "Point" | "LineString"

      The type of the geometry. For "CROSSINGS" the type is "Point", for "CROSSING_CANDIDATE" its "LineString".

    id?: string | number

    id of the feature.

    type: string = 'Feature'

    The GeoJSON feature type.

    x: number

    the x coordinate of the crossing on screen in pixel.

    use display.geoToPixel to project the geographical coordinates of the crossing to pixels on screen.

    y: number

    the y coordinate of the crossing on screen in pixel.

    use display.geoToPixel to project the geographical coordinates of the crossing to pixels on screen.

    • Connects the related Navlink features and creates an intersection.

      Returns false | Crossing[]

      Resulting array of new Crossing due to road network changes or false if none crossing is detected.

    • Get all connected Navlink features which are connected (Intersection) to the related link that is treated as crossing candidate. This method affects Crossings of type "CROSSING_CANDIDATE" only.

      Returns Navlink[]

    • Get the Navlink feature of which the crossing belongs to.

      Returns Navlink

    • Get the Navlink feature which is crossed or treated as a crossing candidate.

      Returns Navlink

    • Hide the crossing on the map.

      Returns void

    • Show the crossing on the map.

      Returns void