HERE Android SDK Developer's Guide

StreetLevelIconPlacement

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

Class Summary

public final class StreetLevelIconPlacement

extends java.lang.Object

Encapsulates the placement properties for all image-based street-level objects ( StreetLevelIcon or StreetLevelBillboard) that users can add to a StreetLevelModel.

[For complete information, see the section Class Details]

Nested Class Summary

Table 1. Nested Classes in StreetLevelIconPlacement
Nested Classes

public static final enumeration StreetLevelIconPlacement.HorizontalPlacement

This enumeration defines values for automatic placement in lat/long coordinates.

public static final enumeration StreetLevelIconPlacement.VerticalPlacement

This enumeration defines values for automatic placement in altitude.

Constructor Summary

Table 2. Constructors in StreetLevelIconPlacement
Constructors

StreetLevelIconPlacement (HorizontalPlacement horizontalPlacement, VerticalPlacement verticalPlacement, float verticalHeight)

Public constructor

Method Summary

Table 3. Methods in StreetLevelIconPlacement
Methods

public boolean equals (Object other)

For documentation, see java.lang.Object

public HorizontalPlacement getHorizontalPlacement ()

Gets the current horizontal placement mode for the street-level image base object

public VerticalPlacement getVerticalPlacement ()

Gets the current vertical placement mode for the street-level image base object

public float getVerticalPlacementHeight ()

Gets the vertical placement height

public int hashCode ()

For documentation, see java.lang.Object

public StreetLevelIconPlacement setHorizontalPlacement (HorizontalPlacement placement)

Sets the street-level image base object horizontal placement mode.

public StreetLevelIconPlacement setVerticalPlacement (VerticalPlacement placement)

Sets the street-level image base object vertical placement mode.

public StreetLevelIconPlacement setVerticalPlacementHeight (float height)

Sets the vertical placement height value.

Class Details

Encapsulates the placement properties for all image-based street-level objects ( StreetLevelIcon or StreetLevelBillboard) that users can add to a StreetLevelModel. Changes to properties of this interface are reflected in the display of the associated StreetLevelIcon or StreetLevelBillboard.

Constructor Details

StreetLevelIconPlacement (HorizontalPlacement horizontalPlacement, VerticalPlacement verticalPlacement, float verticalHeight)

Public constructor

Parameters:

  • horizontalPlacement
  • verticalPlacement
  • verticalHeight

Method Details

public boolean equals (Object other)

For documentation, see java.lang.Object

Parameters:

  • other

public HorizontalPlacement getHorizontalPlacement ()

Gets the current horizontal placement mode for the street-level image base object

Returns:

The horizontal placement mode

public VerticalPlacement getVerticalPlacement ()

Gets the current vertical placement mode for the street-level image base object

Returns:

The vertical placement mode

public float getVerticalPlacementHeight ()

Gets the vertical placement height

Returns:

The Vertical placement height

public int hashCode ()

For documentation, see java.lang.Object

public StreetLevelIconPlacement setHorizontalPlacement (HorizontalPlacement placement)

Sets the street-level image base object horizontal placement mode. The default value is DEFAULT.

Parameters:

  • placement

    Horizontal Placement mode

Returns:

This StreetLevelIconPlacement object

public StreetLevelIconPlacement setVerticalPlacement (VerticalPlacement placement)

Sets the street-level image base object vertical placement mode. In case horizontal placement is set to TRACK_CAMERA, vertical is ignored. The default value is DEFAULT.

Parameters:

  • placement

    Vertical Placement mode

Returns:

This StreetLevelIconPlacement object

public StreetLevelIconPlacement setVerticalPlacementHeight (float height)

Sets the vertical placement height value. The height parameter has a different meaning depending on the placement mode.

Parameters:

  • height

    • If the horizontal placement mode is TRACK_CAMERA, height is the vertical distance in meters from the camera.
    • If the vertical placement mode is TERRAIN, height is the distance in meters above the terrain.
    • If the vertical placement mode is FACADE and horizontal placement is FACADE, height is the desired height in meters above the terrain. However, if this value is lower than the facade's default street-level object height, the default will be used instead. For all other horizontal placements modes, the interpretation is the same as for TERRAIN.
    • If the vertical placement mode is ATTACHMENT, height is a scale factor relative to the attached building height, where 0 is bottom of the building and 1 is top. Values can be outside of [0,1] range.
    • If the vertical placement mode is DEFAULT, height is the meters above sea level.

Returns:

This StreetLevelIconPlacement object

See also:

StreetLevelIconPlacement.VerticalPlacement

StreetLevelIconPlacement.HorizontalPlacement

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.