HERE Android SDK Developer's Guide

MapTrafficLayer

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

Class Summary

public final class MapTrafficLayer

extends java.lang.Object

Class to represent Traffic rendering information.

[For complete information, see the section Class Details]

See also:

getMapTrafficLayer()

Nested Class Summary

Table 1. Nested Classes in MapTrafficLayer
Nested Classes

public static final enumeration MapTrafficLayer.RenderLayer

Represents values describing various traffic layers that can be displayed within a MapTrafficLayer .

Method Summary

Table 2. Methods in MapTrafficLayer
Methods

public Severity getDisplayFilter ()

This method retrieves current value of the display filter.

public boolean isEnabled (RenderLayer layer)

Checks if a Traffic Layer defined in RenderLayer is enabled.

public boolean setDisplayFilter (Severity severity)

This method sets a minimal severity of Traffic Events which shall be displayed.

public void setEnabled (RenderLayer layer, boolean enable)

Enable a Traffic Layer defined in RenderLayer .

Class Details

Class to represent Traffic rendering information. This class can be used to control which types of traffic are rendered.

See also:

getMapTrafficLayer()

Method Details

public Severity getDisplayFilter ()

This method retrieves current value of the display filter.

Returns:

severity The current value of the display filter.

public boolean isEnabled (RenderLayer layer)

Checks if a Traffic Layer defined in RenderLayer is enabled.

Parameters:

  • layer

    a traffic layer defined in RenderLayer.

Returns:

True if the layer is enabled. False, otherwise.

public boolean setDisplayFilter (Severity severity)

This method sets a minimal severity of Traffic Events which shall be displayed. So, calling setDisplayFilter(Severity) with filter set to BLOCKING means that only blocking events will be displayed. Calling setDisplayFilter(Severity) with filter set to NORMAL means that all events (BLOCKING, VERY_HIGH, HIGH, NORMAL) will be displayed. The default display filter is NORMAL.

Parameters:

  • severity

    A minimal severity which shall be displayed.

Returns:

true if successful, false otherwise. Passing UNDEFINED will return false.

public void setEnabled (RenderLayer layer, boolean enable)

Enable a Traffic Layer defined in RenderLayer . The default behavior is that all RenderLayers are enabled.

Parameters:

  • layer

    a traffic layer defined in RenderLayer.

  • enable

    True to enable, false to disable.