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.

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.