HERE Android SDK Developer's Guide

MapTransitLayer

The class MapTransitLayer is a member of com.here.android.mpa.mapping .

Class Summary

public final class MapTransitLayer

extends java.lang.Object

Represents a Map layer that can display any combination of transit stops, accesses, and lines (including none).

[For complete information, see the section Class Details]

See also:

getMapTransitLayer()

Nested Class Summary

Table 1. Nested Classes in MapTransitLayer
Nested Classes

public static final enumeration MapTransitLayer.Mode

Represents values describing various ways to display public transit within a MapTransitLayer .

Method Summary

Table 2. Methods in MapTransitLayer
Methods

public void clearTransitHighlights ()

Clears all MapTransitLayer elements, resetting them to a non-highlighted state.

public Mode getMode ()

Gets the Mode for the MapTransitLayer .

public void highlightTransitAccesses (java.util.List <Identifier> ids)

Highlights a specified list of transit accesses.

public void highlightTransitLineSegments (java.util.List <Identifier> ids)

Highlights a specified list of transit segment lines.

public void highlightTransitLines (java.util.List <Identifier> ids)

Highlights a specified list of transit lines.

public void highlightTransitStops (java.util.List <Identifier> ids)

Highlights a specified list of transit stops.

public void setMode (Mode mode)

Sets a Mode for the MapTransitLayer .

Class Details

Represents a Map layer that can display any combination of transit stops, accesses, and lines (including none).

See also:

getMapTransitLayer()

Method Details

public void clearTransitHighlights ()

Clears all MapTransitLayer elements, resetting them to a non-highlighted state.

public Mode getMode ()

Gets the Mode for the MapTransitLayer .

Returns:

The Mode

public void highlightTransitAccesses (java.util.List <Identifier> ids)

Highlights a specified list of transit accesses. Previously highlighted lines remain highlighted until clearTransitHighlights() is called to clear all highlighted objects.

Parameters:

  • ids

    A list of IDs Identifier representing the accesses to highlight. If an Identifier supplied does not match any transit accesses, it will be ignored.

See also:

getStopId()

getId()

clearTransitHighlights()

public void highlightTransitLineSegments (java.util.List <Identifier> ids)

Highlights a specified list of transit segment lines. Previously highlighted lines remain highlighted until clearTransitHighlights() is called to clear all highlighted objects.

Parameters:

  • ids

    A list of IDs Identifier representing the segment lines to highlight. If an Identifier supplied does not match any transit segment lines, it will be ignored.

See also:

getLineSegmentId()

clearTransitHighlights()

public void highlightTransitLines (java.util.List <Identifier> ids)

Highlights a specified list of transit lines. Previously highlighted lines remain highlighted until clearTransitHighlights() is called to clear all highlighted objects.

Parameters:

  • ids

    A list of Identifiers representing the lines to highlight. If an Identifier supplied does not match any transit lines, it will be ignored.

See also:

getLineId()

clearTransitHighlights()

public void highlightTransitStops (java.util.List <Identifier> ids)

Highlights a specified list of transit stops. Previously highlighted lines remain highlighted until clearTransitHighlights() is called to clear all highlighted objects.

Parameters:

  • ids

    A list of Identifiers representing the stops to highlight. If an Identifier supplied does not match any transit stops, it will be ignored.

See also:

getStopId()

getId()

clearTransitHighlights()

public void setMode (Mode mode)

Sets a Mode for the MapTransitLayer . The default mode is STOPS_AND_ACCESSES.

Parameters:

  • mode

    A Mode to set