java.lang.Object | |
↳ | com.mapsted.map.MapstedMapApi.MapCameraImpl |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Recenter map on current location
Center the map on the given property
buildingId | building to recenter on |
---|
Center the map on the given entity
entity | the entity to recenter on |
---|
Center the map on the given property
propertyId | property to recenter on |
---|
Returns current map focus point with Property/Building/Floor information, if available
Container for the current status of map (e.g., zoom, tilt, rotation)
Get current zoom level
Get whether or not the camera will auto-follow the user
Call this function to update maps pragmatically. For example, map zoom, map rotation, change map focus point etc.
updateMapEvent | Pass in UpdateMapEvent object to update the map events. |
---|
refresh the map
Call this function to rotate the map to be aligned north.
Update whether or not the camera should follow the user
followUser | enable or disable |
---|