java.lang.Object | |
↳ | com.mapsted.map.position.UpdateMapEvent |
A class used for a new map event like setting new map position, set map bounds, rotate/tilt/zoom/recenter map, etc. Call `MapstedmapApi.mapView().camera().onUpdateMapEvent(UpdateMapEvent)` to pass in to update map pragmatically.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
UpdateMapEvent() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Float |
getDuration()
Method to get duration of the update map event performed.
| ||||||||||
boolean |
getIfRedrawMap()
Method to know if re-draw map event is needed
| ||||||||||
MapstedMapBounds |
getMapBounds()
Method to get the map bounds.
| ||||||||||
IMercator |
getNewMapPos()
Method to get new map position.
| ||||||||||
IZone |
getNewZone()
Method to get new zone on the map.
| ||||||||||
ArrayList<UpdateMapViewEvent> |
getUpdateMapViewEvents()
Method to get a list of update map view events
| ||||||||||
void |
setDuration(Float duration)
Method to set the duration of the update map event performed.
| ||||||||||
void |
setIfRedrawMap(boolean ifRedrawMap)
Method to set if re-draw map event is needed.
| ||||||||||
void |
setMapBounds(MapstedMapBounds mapBounds)
Method to set the map bounds.
| ||||||||||
void | setMapPosToUserPosition(CoreApi coreApi) | ||||||||||
void |
setNewMapPos(IMercator newMapPos)
Method to set new map position.
| ||||||||||
void |
setNewZone(IZone newZone)
Method to set new zone on the map.
| ||||||||||
void |
setUpdateMapViewEvents(ArrayList<UpdateMapViewEvent> updateMapViewEvents)
Method to set update map view events.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Method to get duration of the update map event performed.
Method to know if re-draw map event is needed
Method to get the map bounds.
Method to get new map position.
Method to get new zone on the map.
Method to get a list of update map view events
Method to set the duration of the update map event performed.
duration | A float value that indicates the animation duration of the update map event. |
---|
Method to set if re-draw map event is needed.
ifRedrawMap | Pass true if re-draw map event is need else pass false |
---|
Method to set the map bounds. This map bounds uses min and max position to zoom in an axis aligned cuboid on the map.
mapBounds | MapBounds of the current map event to be updated. |
---|
Method to set new map position. Map position is defined in two double coordinates X and Y to get a precision position on the map.
newMapPos | New Map Position of the current map event to be updated. |
---|
Method to set new zone on the map.
newZone | The floor id for the new floor to display on the map. |
---|
Method to set update map view events. Events including rotation, zoom, tilt, recenter types can be passed.
updateMapViewEvents | A list of update map view events. |
---|