Constructors

Methods

  • Parameters

    • path: IRoutePath

      Route path from RouteService.search response.

    • markerLocations: [number, number][]

      Coordinate([lng, lat]) array of markers, order from beginning to end.

    Returns void

    Description

    Render route on the map.

  • Parameters

    • color: string

      The color type is a color in the sRGB color space. Formats: HTML-style hex values, RGB, RGBA, HSL, and HSLA. Predefined HTML colors names, like yellow and blue, are also permitted.

    Returns this

    Description

    Set color of shuttle bus line.

  • Parameters

    • color: string

      The color type is a color in the sRGB color space. Formats: HTML-style hex values, RGB, RGBA, HSL, and HSLA. Predefined HTML colors names, like yellow and blue, are also permitted.

    Returns this

    Description

    Set color of dashed lines which connected the start and end markers.

  • Parameters

    • buildingId: string

      {string | null | undefined}

    • ordinal: string

      {string | null | undefined}

    Returns void

    Description

    Filter paths' opacity by building and ordinal.

  • Parameters

    • venueId: string

      {string | null | undefined}

    • ordinal: string

      {string | null | undefined}

    Returns void

    Description

    Filter paths' opacity by venue and ordinal.

  • Parameters

    • color: string

      The color type is a color in the sRGB color space. Formats: HTML-style hex values, RGB, RGBA, HSL, and HSLA. Predefined HTML colors names, like yellow and blue, are also permitted.

    Returns this

    Description

    Set the route color of the indoor part.

  • Parameters

    • size: number

      Default is 1.

    Returns this

    Description

    Set image icon scale.

  • Parameters

    • icons: string[] | {
          from?: string;
          stops?: string[];
          to?: string;
      }

      {Array<string | null> | {from?: string | null; to?: string | null; stops?: Array<string | null> | null;}} Array of sprite names or URLs, or the object with specifying icon. Markers use images in order of icons array. First is as from-marker, last is as to-marker, the middles are as stop-markers. If icons array has only one element, all stop markers use this image. Image file must be in png, webp, or jpg format. Null means none image.

    Returns Promise<void>

    Description

    Set image[s] of the stop marker[s].

  • Parameters

    • color: string

      The color type is a color in the sRGB color space. Formats: HTML-style hex values, RGB, RGBA, HSL, and HSLA. Predefined HTML colors names, like yellow and blue, are also permitted.

    Returns this

    Description

    Set the route color of the outdoor part.