HERE Android SDK Developer's Guide

MapBuildingGroup

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

Class Summary

public final class MapBuildingGroup

extends java.lang.Object

Represents a group of extruded buildings.

[For complete information, see the section Class Details]

See also:

MapBuildingLayer

MapBuildingObject

Nested Class Summary

Table 1. Nested Classes in MapBuildingGroup
Nested Classes

public static final enumeration MapBuildingGroup.BuildingFace

Addressable building faces for the MapBuildingObject instances in this building group.

Method Summary

Table 2. Methods in MapBuildingGroup
Methods

public boolean addBuilding (Identifier identifier)

Adds a building to this MapBuildingGroup.

public boolean addBuildings (java.util.List <Identifier> identifiers)

Adds a List of buildings to this MapBuildingGroup

public Identifier convertStringToIdentifier (String id)

Convert a String building identifier to a concrete building Identifier.

public int getBuildingCount ()

Gets the number of buildings in this MapBuildingGroup

public int getColor (BuildingFace face)

Gets the color for this MapBuildingGroup's specified building face.

public float getVerticalScale ()

Gets the MapBuildingGroup's height scaling factor.

public boolean removeAllBuildings ()

Removes all MapBuildingObject from this MapBuildingGroup

public boolean removeBuilding (Identifier identifier)

Removes a building from this MapBuildingGroup

public boolean removeBuildings (java.util.List <Identifier> identifiers)

Removes a List of buildings from this MapBuildingGroup

public void setColor (int color, java.util.EnumSet <BuildingFace> faces)

Sets the color for the specified building faces.

public void setVerticalScale (float scale)

Sets the MapBuildingGroup's height scaling factor.

Class Details

Represents a group of extruded buildings.

See also:

MapBuildingLayer

MapBuildingObject

Method Details

public boolean addBuilding (Identifier identifier)

Adds a building to this MapBuildingGroup.

Parameters:

  • identifier

    Identifier of the building to be added. The Identifier can be retrieved from PlaceLink.

Returns:

true if added, false otherwise.

public boolean addBuildings (java.util.List <Identifier> identifiers)

Adds a List of buildings to this MapBuildingGroup

Parameters:

  • identifiers

    List of building Identifiers of buildings to be added.

Returns:

true if added, false otherwise.

public Identifier convertStringToIdentifier (String id)

Convert a String building identifier to a concrete building Identifier.

Parameters:

Returns:

An Identifier that can be used to highlight or query buildings.

public int getBuildingCount ()

Gets the number of buildings in this MapBuildingGroup

Returns:

number of buildings in the MapBuildingGroup

public int getColor (BuildingFace face)

Gets the color for this MapBuildingGroup's specified building face.

Parameters:

Returns:

An integer representing android.graphics.Color

public float getVerticalScale ()

Gets the MapBuildingGroup's height scaling factor.

Returns:

float scaling factor [0,1]

public boolean removeAllBuildings ()

Removes all MapBuildingObject from this MapBuildingGroup

Returns:

true if removed, false otherwise

public boolean removeBuilding (Identifier identifier)

Removes a building from this MapBuildingGroup

Parameters:

Returns:

true if removed, false otherwise.

public boolean removeBuildings (java.util.List <Identifier> identifiers)

Removes a List of buildings from this MapBuildingGroup

Parameters:

Returns:

true if removed, false otherwise.

public void setColor (int color, java.util.EnumSet <BuildingFace> faces)

Sets the color for the specified building faces. All MapBuildingObject in this building group will be affected.

Parameters:

public void setVerticalScale (float scale)

Sets the MapBuildingGroup's height scaling factor. All MapBuildingObject in this building group will be affected.

Parameters:

  • scale

    Scale factor