public static interface

MapApi.MapCamera

com.mapsted.map.MapApi.MapCamera
Known Indirect Subclasses

Summary

Public Methods
abstract void centerCurrentLocation()
Recenter map on current location
abstract boolean centerMapOnBuilding(int buildingId)
Center the map on the given property
abstract boolean centerMapOnEntity(Entity entity)
Center the map on the given entity
abstract boolean centerMapOnProperty(int propertyId)
Center the map on the given property
abstract MercatorZone getMapFocusZone()
Returns current map focus point with Property/Building/Floor information, if available
abstract MapstedMapViewStatus getMapStatus()
Container for the current status of map (e.g., zoom, tilt, rotation)
abstract float getZoom()
Get current zoom level
abstract boolean isCameraFollowUser()
Get whether or not the camera will auto-follow the user
abstract void onUpdateMapEvent(UpdateMapEvent mapEvent)
Call this function to update maps pragmatically.
abstract void refreshMap()
refresh the map
abstract void rotateToAlignNorth()
Rotate map to align north
abstract void setCameraFollowUser(boolean followUser)
Update whether or not the camera should follow the user

Public Methods

public abstract void centerCurrentLocation ()

Recenter map on current location

public abstract boolean centerMapOnBuilding (int buildingId)

Center the map on the given property

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

public abstract boolean centerMapOnEntity (Entity entity)

Center the map on the given entity

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

public abstract boolean centerMapOnProperty (int propertyId)

Center the map on the given property

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

public abstract MercatorZone getMapFocusZone ()

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

Returns
  • map focus point

public abstract MapstedMapViewStatus getMapStatus ()

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

Returns
  • MapViewStatus object

public abstract float getZoom ()

Get current zoom level

public abstract 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 abstract void onUpdateMapEvent (UpdateMapEvent mapEvent)

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

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

public abstract void refreshMap ()

refresh the map

public abstract void rotateToAlignNorth ()

Rotate map to align north

public abstract void setCameraFollowUser (boolean followUser)

Update whether or not the camera should follow the user

Parameters
followUser enable or disable