public class

MapstedMapApi.MapCameraImpl

extends Object
implements MapApi.MapCamera
java.lang.Object
   ↳ com.mapsted.map.MapstedMapApi.MapCameraImpl

Summary

Public Constructors
MapCameraImpl(MapApi.MapView mapView)
Public Methods
void centerCurrentLocation()
Recenter map on current location
boolean centerMapOnBuilding(int buildingId)
Center the map on the given property
boolean centerMapOnEntity(Entity entity)
Center the map on the given entity
boolean centerMapOnProperty(int propertyId)
Center the map on the given property
MercatorZone getMapFocusZone()
Returns current map focus point with Property/Building/Floor information, if available
MapstedMapViewStatus getMapStatus()
Container for the current status of map (e.g., zoom, tilt, rotation)
float getZoom()
Get current zoom level
boolean isCameraFollowUser()
Get whether or not the camera will auto-follow the user
void onUpdateMapEvent(UpdateMapEvent updateMapEvent)
Call this function to update maps pragmatically.
void refreshMap()
refresh the map
void rotateToAlignNorth()
Call this function to rotate the map to be aligned north.
void setCameraFollowUser(boolean followUser)
Update whether or not the camera should follow the user
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.mapsted.map.MapApi.MapCamera

Public Constructors

public MapCameraImpl (MapApi.MapView mapView)

Public Methods

public void centerCurrentLocation ()

Recenter map on current location

public boolean centerMapOnBuilding (int buildingId)

Center the map on the given property

Parameters
buildingId building to recenter on
Returns
  • whether or not successful

public boolean centerMapOnEntity (Entity entity)

Center the map on the given entity

Parameters
entity the entity to recenter on
Returns
  • whether or not successful

public boolean centerMapOnProperty (int propertyId)

Center the map on the given property

Parameters
propertyId property to recenter on
Returns
  • whether or not successful

public MercatorZone getMapFocusZone ()

Returns current map focus point with Property/Building/Floor information, if available

Returns
  • map focus point

public MapstedMapViewStatus getMapStatus ()

Container for the current status of map (e.g., zoom, tilt, rotation)

Returns
  • MapViewStatus object

public float getZoom ()

Get current zoom level

public boolean isCameraFollowUser ()

Get whether or not the camera will auto-follow the user

Returns
  • whether or not the camera will auto-follow the user

public void onUpdateMapEvent (UpdateMapEvent updateMapEvent)

Call this function to update maps pragmatically. For example, map zoom, map rotation, change map focus point etc.

Parameters
updateMapEvent Pass in UpdateMapEvent object to update the map events.

public void refreshMap ()

refresh the map

public void rotateToAlignNorth ()

Call this function to rotate the map to be aligned north.

public void setCameraFollowUser (boolean followUser)

Update whether or not the camera should follow the user

Parameters
followUser enable or disable