Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • JourneyLayer

Index

Methods

  • clear(): void
  • Clear the current Journey

    Returns void

  • Draw a Journey based on directions. Example usage:

    const startLocation = venue.locations.find(location => location.name === "Cleo");
    const endLocation = venue.locations.find(location => location.name === "American Eagle");

    const directions = startLocation.directionsTo(endLocation);
    mapView.Journey.draw(directions);

    Use options to set connection (such as elevators and escalators) HTML tooltip template, departure and destination marker templates, path style and polygon higlight color. If no options are set, sane defaults are used to draw markers, tooltips and polygon highlights.

    Parameters

    Returns Journey

  • setStep(step: number): void
  • Set the step of a multipart Journey

    Parameters

    • step: number

    Returns void