HERE Android SDK Developer's Guide

StreetLevelIcon

The class StreetLevelIcon is a member of com.here.android.mpa.streetlevel .

Class Summary

public final class StreetLevelIcon

extends com.here.android.mpa.streetlevel.StreetLevelIconBase, com.here.android.mpa.streetlevel.StreetLevelObject, com.here.android.mpa.common.ViewObject, java.lang.Object

Represents a class for all street-level icon objects.

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in StreetLevelIcon
Constructors

StreetLevelIcon (GeoCoordinate coordinate, Image image)

Public Constructor

Method Summary

Table 2. Methods in StreetLevelIcon
Methods

public Identifier getAttachmentIdentifier ()

Gets the Identifier for the building to which the StreetLevelIconBase ( StreetLevelIcon or StreetLevelBillboard) is attached to.

public StreetLevelIconSize getSize ()

Gets the current StreetLevelIconSize of the StreetLevelIcon.

public StreetLevelIcon setAttachmentIdentifier (Identifier identifier)

Attaches street level icon object to a StreetLevelBuilding with specified Identifier .

public StreetLevelIcon setSize (StreetLevelIconSize size)

Sets a StreetLevelIconSize for the StreetLevelIcon.

Class Details

Represents a class for all street-level icon objects. Users can add a StreetLevelIcon object to an on-screen StreetLevelModel instance by binding it with a StreetLevelFragment object.

Constructor Details

StreetLevelIcon (GeoCoordinate coordinate, Image image)

Public Constructor

Parameters:

  • coordinate

    The location for this icon

  • image

    The logo image for this icon

Method Details

public Identifier getAttachmentIdentifier ()

Gets the Identifier for the building to which the StreetLevelIconBase ( StreetLevelIcon or StreetLevelBillboard) is attached to.

Returns:

The attached building identifier or null in case icon or billboard is not attached to a building

public StreetLevelIconSize getSize ()

Gets the current StreetLevelIconSize of the StreetLevelIcon.

Returns:

The StreetLevelIconSize

public StreetLevelIcon setAttachmentIdentifier (Identifier identifier)

Attaches street level icon object to a StreetLevelBuilding with specified Identifier .

Use null value to remove attachment.

Parameters:

  • identifier

    Desired Identifier for the icon or billboard

Returns:

This StreetLevelIcon object

public StreetLevelIcon setSize (StreetLevelIconSize size)

Sets a StreetLevelIconSize for the StreetLevelIcon. If the size is not set, the icon will not be displayed in the street-level image.

Parameters:

Returns:

This StreetLevelIcon object