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

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.