public class

UpdateMapEvent

extends Object
java.lang.Object
   ↳ com.mapsted.map.position.UpdateMapEvent

Class Overview

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.

Summary

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
From class java.lang.Object

Public Constructors

public UpdateMapEvent ()

Public Methods

public Float getDuration ()

Method to get duration of the update map event performed.

Returns
  • Float value that indicates the animation duration of the update map event.

public boolean getIfRedrawMap ()

Method to know if re-draw map event is needed

Returns
  • A boolean value that indicates if re-draw map event is need.

public MapstedMapBounds getMapBounds ()

Method to get the map bounds.

Returns
  • MapBounds of the current map.

public IMercator getNewMapPos ()

Method to get new map position.

Returns
  • New Map Position of the current map event to be updated.

public IZone getNewZone ()

Method to get new zone on the map.

Returns
  • The zone to display on the map.

public ArrayList<UpdateMapViewEvent> getUpdateMapViewEvents ()

Method to get a list of update map view events

Returns
  • A list of update map view events

public void setDuration (Float duration)

Method to set the duration of the update map event performed.

Parameters
duration A float value that indicates the animation duration of the update map event.
See Also

public void setIfRedrawMap (boolean ifRedrawMap)

Method to set if re-draw map event is needed.

Parameters
ifRedrawMap Pass true if re-draw map event is need else pass false
See Also

public void setMapBounds (MapstedMapBounds mapBounds)

Method to set the map bounds. This map bounds uses min and max position to zoom in an axis aligned cuboid on the map.

Parameters
mapBounds MapBounds of the current map event to be updated.
See Also

public void setMapPosToUserPosition (CoreApi coreApi)

public void setNewMapPos (IMercator newMapPos)

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.

Parameters
newMapPos New Map Position of the current map event to be updated.
See Also

public void setNewZone (IZone newZone)

Method to set new zone on the map.

Parameters
newZone The floor id for the new floor to display on the map.
See Also

public void setUpdateMapViewEvents (ArrayList<UpdateMapViewEvent> updateMapViewEvents)

Method to set update map view events. Events including rotation, zoom, tilt, recenter types can be passed.

Parameters
updateMapViewEvents A list of update map view events.