HERE Android SDK Developer's Guide

MapLocalModel

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

Class Summary

public final class MapLocalModel

extends com.here.android.mpa.mapping.MapModelObject, com.here.android.mpa.mapping.MapObject, com.here.android.mpa.common.ViewObject, java.lang.Object

Represents a relative local coordinate mesh displayed on a map.

[For complete information, see the section Class Details]

See also:

LocalMesh

MapGeoModel

Constructor Summary

Table 1. Constructors in MapLocalModel
Constructors

MapLocalModel ()

Creates a MapLocalModel .

Method Summary

Table 2. Methods in MapLocalModel
Methods

public GeoCoordinate getAnchor ()

Gets the GeoCoordinate representing the anchor that is currently associated with the MapLocalModel .

public LocalMesh getMesh ()

Gets the LocalMesh currently associated with the MapLocalModel .

public float getPitch ()

Gets the current pitch of the MapLocalModel .

public float getRoll ()

Gets the current roll or the MapLocalModel .

public float getScale ()

Gets the current scaling factor for the LocalMesh.

public Image getTexture ()

Gets the current texture Image of the MapLocalModel .

public float getYaw ()

Gets the current yaw of the MapLocalModel .

public boolean isDynamicScalingEnabled ()

Gets the boolean indicating whether dynamic scaling is enabled for the MapLocalModel .

public MapLocalModel setAnchor (GeoCoordinate anchor)

Sets an anchor GeoCoordinate for the MapLocalModel .

public MapLocalModel setDynamicScalingEnabled (boolean enable)

Sets dynamic scaling to be either enabled or disabled for the MapLocalModel .

public MapLocalModel setMesh (LocalMesh mesh)

Sets a LocalMesh for the MapLocalModel

public MapLocalModel setPitch (float angle)

Sets a pitch value for the MapLocalModel .

public MapLocalModel setRoll (float angle)

Sets a roll value for the MapLocalModel .

public MapLocalModel setScale (float scale)

Sets a scaling factor used to scale the size of the LocalMesh.

public MapLocalModel setTexture (Image texture)

Sets a texture Image for the MapLocalModel .

public MapLocalModel setYaw (float angle)

Sets a yaw value for the MapLocalModel .

Class Details

Represents a relative local coordinate mesh displayed on a map. The format for the mesh is interpreted as an array of float offsets relative to the anchor, which itself specifies the center base of the objects.

A unit of 1.0f represents 1 meter in the real world. For example, a Vector3f( 100, 200, 300 ) represents a point offset by 100 meters in the x-axis direction (east), 200 meters in the y-axis direction (north), and 300 meters in the z-axis direction (up), all relative to the anchor.

Note: a MapLocalModel object can be augmented by specifying additional attributes such as scale, scale style, or rotation.

See also:

LocalMesh

MapGeoModel

Constructor Details

MapLocalModel ()

Creates a MapLocalModel .

Method Details

public GeoCoordinate getAnchor ()

Gets the GeoCoordinate representing the anchor that is currently associated with the MapLocalModel .

Returns:

The GeoCoordinate

public LocalMesh getMesh ()

Gets the LocalMesh currently associated with the MapLocalModel .

Returns:

The LocalMesh

public float getPitch ()

Gets the current pitch of the MapLocalModel .

Returns:

The current pitch in degrees

public float getRoll ()

Gets the current roll or the MapLocalModel .

Returns:

The current roll in degrees

public float getScale ()

Gets the current scaling factor for the LocalMesh.

Returns:

The current scaling factor

public Image getTexture ()

Gets the current texture Image of the MapLocalModel .

Returns:

The texture Image

public float getYaw ()

Gets the current yaw of the MapLocalModel .

Returns:

The current yaw in degrees

public boolean isDynamicScalingEnabled ()

Gets the boolean indicating whether dynamic scaling is enabled for the MapLocalModel .

Returns:

True if dynamic scaling is enabled, false otherwise

public MapLocalModel setAnchor (GeoCoordinate anchor)

Sets an anchor GeoCoordinate for the MapLocalModel .

Parameters:

  • anchor

    Desired GeoCoordinate

Returns:

The modified MapLocalModel itself.

public MapLocalModel setDynamicScalingEnabled (boolean enable)

Sets dynamic scaling to be either enabled or disabled for the MapLocalModel . When dynamic scaling is enabled, the rendered size of the model on screen is constant regardless of the map's zoom level.

Parameters:

  • enable

    A boolean specifying whether dynamic scaling is enabled

Returns:

The modified MapLocalModel itself.

public MapLocalModel setMesh (LocalMesh mesh)

Sets a LocalMesh for the MapLocalModel

Parameters:

  • mesh

    Desired LocalMesh

Returns:

The modified MapLocalModel itself.

public MapLocalModel setPitch (float angle)

Sets a pitch value for the MapLocalModel .

Parameters:

  • angle

    Desired pitch in degrees

Returns:

The modified MapLocalModel itself.

public MapLocalModel setRoll (float angle)

Sets a roll value for the MapLocalModel .

Parameters:

  • angle

    Desired roll in degrees

Returns:

The modified

public MapLocalModel setScale (float scale)

Sets a scaling factor used to scale the size of the LocalMesh.

Parameters:

  • scale

    Desired scaling factor

Returns:

The modified MapLocalModel itself.

public MapLocalModel setTexture (Image texture)

Sets a texture Image for the MapLocalModel .

Parameters:

  • texture

    Desired texture Image

Returns:

The modified MapLocalModel itself.

public MapLocalModel setYaw (float angle)

Sets a yaw value for the MapLocalModel .

Parameters:

  • angle

    Desired yaw in degrees

Returns:

The modified MapLocalModel itself.

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.