public static class

UpdateMapEvent.Builder

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

Summary

Public Constructors
Builder()
Public Methods
UpdateMapEvent.Builder addMapViewEvent(short type, float value)
Method to add a map view event (i.e., rotation, zoom, tilt, or recenter)
UpdateMapEvent.Builder addMapViewEvent(short type, float value, float durationSec)
Method to add a map view event (i.e., rotation, zoom, tilt, or recenter)
UpdateMapEvent build()
UpdateMapEvent.Builder setDuration(Float duration)
Method to set the duration of the update map event performed.
UpdateMapEvent.Builder setMapBounds(MapstedMapBounds mapBounds)
Method to set the map bounds.
UpdateMapEvent.Builder setNewMapPos(IMercator newMapPos)
Method to set new map position.
UpdateMapEvent.Builder setNewZone(IZone newZone)
Method to set new zone on the map.
UpdateMapEvent.Builder shouldRedrawMap(boolean ifRedrawMap)
Method to set if re-draw map event is needed.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Builder ()

Public Methods

public UpdateMapEvent.Builder addMapViewEvent (short type, float value)

Method to add a map view event (i.e., rotation, zoom, tilt, or recenter)

Parameters
type Enum specifying the event type.
value The value to update (e.g., zoom level, rotation angle, etc.)
Returns
  • The builder

public UpdateMapEvent.Builder addMapViewEvent (short type, float value, float durationSec)

Method to add a map view event (i.e., rotation, zoom, tilt, or recenter)

Parameters
type Enum specifying the event type.
value The value to update (e.g., zoom level, rotation angle, etc.)
durationSec The duration in seconds that the event should take to execute
Returns
  • The builder

public UpdateMapEvent build ()

public UpdateMapEvent.Builder 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.
Returns
  • The builder

public UpdateMapEvent.Builder 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.
Returns
  • The builder

public UpdateMapEvent.Builder 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.
Returns
  • The builder

public UpdateMapEvent.Builder 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.
Returns
  • The builder

public UpdateMapEvent.Builder shouldRedrawMap (boolean ifRedrawMap)

Method to set if re-draw map event is needed. This is useful when removing or adding new properties, etc.

Parameters
ifRedrawMap Pass true if re-draw map event is need else pass false
Returns
  • The builder