MapTrip SDK Android Manual 9.9.7
IwMapviewerConfig Class Reference

Used for MapTripAPI specific configs. More...

+ Inheritance diagram for IwMapviewerConfig:

Public Member Functions

final void applyConfiguration (final Mapviewer map, final int iwId)
 
int describeContents ()
 
double getCarIconLookAheadRatio2d ()
 
double getCarIconLookAheadRatio3dLandscape ()
 
double getCarIconLookAheadRatio3dPortrait ()
 
Boolean getCoiZoom ()
 
String getColorProfile ()
 
Boolean getIsLocationTrackingEnabled ()
 
Boolean getIsRotationEnabled ()
 
MapType getMapType ()
 
MapPerspective getPerspective ()
 
Boolean getRealityView ()
 
Boolean getShowVehicleIcon ()
 
Boolean getSignPosts ()
 
Boolean getSpeedDependendZoom ()
 
Boolean isRouteGuidanceEnabled ()
 
 IwMapviewerConfig ()
 
 IwMapviewerConfig (Context context, AttributeSet attrs)
 
 IwMapviewerConfig (final Mapviewer mapviewer)
 
 IwMapviewerConfig (IwMapviewerConfig toCopy)
 
 IwMapviewerConfig (Parcel in)
 
void setCarIconLookAheadRatio2d (float ratio)
 
void setCarIconLookAheadRatio3dLandscape (float ratio)
 
void setCarIconLookAheadRatio3dPortrait (float ratio)
 
void setCoiZoom (boolean enabled)
 
void setColorProfile (String colorProfile)
 
void setIsLocationTrackingEnabled (boolean isLocationTrackingEnabled)
 
void setIsRotationEnabled (boolean isRotationEnabled)
 
void setMapType (MapType mapType)
 
void setPerspective (MapPerspective perspective)
 
void setRealityView (boolean show)
 
void setRouteGuidanceEnabled (boolean enabled)
 
void setShowVehicleIcon (boolean show)
 
void setSignPosts (boolean show)
 
void setSpeedDependendZoom (boolean enabled)
 
String toString ()
 
void writeToParcel (Parcel destination, int flags)
 

Static Public Attributes

static final Creator< IwMapviewerConfigCREATOR
 

Protected Member Functions

void applyConfigurationOnApiThread (final Mapviewer map, int iwId)
 
void parseStyleAttributes (Context context, AttributeSet attrs)
 

Detailed Description

The config can be read from a IwMapView and be applied to any other mapview.

implements Parcelable - can be passed by intents

Constructor & Destructor Documentation

◆ IwMapviewerConfig() [1/5]

IwMapviewerConfig ( final Mapviewer  mapviewer)

Create config from a Mapviewer instance

Parameters
mapviewer- the map to create the config from

◆ IwMapviewerConfig() [2/5]

Default constructor, default configuration

◆ IwMapviewerConfig() [3/5]

IwMapviewerConfig ( Context  context,
AttributeSet  attrs 
)

Create a configuration from XML styled attributes

Parameters
context- activity context
attrs- styled attributes

◆ IwMapviewerConfig() [4/5]

IwMapviewerConfig ( Parcel  in)

Create a configuration by saved instance

Parameters
in- parcel to create config from

◆ IwMapviewerConfig() [5/5]

copy constructor

Parameters
toCopy- parcel to create config from

Member Function Documentation

◆ applyConfiguration()

final void applyConfiguration ( final Mapviewer  map,
final int  iwId 
)
inherited

Set the stored configuration values on a mapviewer instance

may not be overwritten - overwrite applyConfigurationOnApiThread instead

Parameters
map- map to read config from
iwId- id of the mapviewer

◆ applyConfigurationOnApiThread()

void applyConfigurationOnApiThread ( final Mapviewer  map,
int  iwId 
)
protected

Set the stored configuration values on a mapviewer instance

Parameters
map

Reimplemented from IwMapviewerConfigBase.

◆ describeContents()

int describeContents ( )
inherited

◆ getCarIconLookAheadRatio2d()

double getCarIconLookAheadRatio2d ( )

◆ getCarIconLookAheadRatio3dLandscape()

double getCarIconLookAheadRatio3dLandscape ( )

◆ getCarIconLookAheadRatio3dPortrait()

double getCarIconLookAheadRatio3dPortrait ( )

◆ getCoiZoom()

Boolean getCoiZoom ( )

◆ getColorProfile()

String getColorProfile ( )
inherited

◆ getIsLocationTrackingEnabled()

Boolean getIsLocationTrackingEnabled ( )
inherited

◆ getIsRotationEnabled()

Boolean getIsRotationEnabled ( )
inherited

◆ getMapType()

MapType getMapType ( )
inherited

◆ getPerspective()

MapPerspective getPerspective ( )
inherited

◆ getRealityView()

Boolean getRealityView ( )

◆ getShowVehicleIcon()

Boolean getShowVehicleIcon ( )
inherited

◆ getSignPosts()

Boolean getSignPosts ( )

◆ getSpeedDependendZoom()

Boolean getSpeedDependendZoom ( )

◆ isRouteGuidanceEnabled()

Boolean isRouteGuidanceEnabled ( )
inherited

◆ parseStyleAttributes()

void parseStyleAttributes ( Context  context,
AttributeSet  attrs 
)
protected

Parse attributes from XML and store in variables

Parameters
context
attrs

Reimplemented from IwMapviewerConfigBase.

◆ setCarIconLookAheadRatio2d()

void setCarIconLookAheadRatio2d ( float  ratio)

◆ setCarIconLookAheadRatio3dLandscape()

void setCarIconLookAheadRatio3dLandscape ( float  ratio)

◆ setCarIconLookAheadRatio3dPortrait()

void setCarIconLookAheadRatio3dPortrait ( float  ratio)

◆ setCoiZoom()

void setCoiZoom ( boolean  enabled)

◆ setColorProfile()

void setColorProfile ( String  colorProfile)
inherited

◆ setIsLocationTrackingEnabled()

void setIsLocationTrackingEnabled ( boolean  isLocationTrackingEnabled)
inherited

◆ setIsRotationEnabled()

void setIsRotationEnabled ( boolean  isRotationEnabled)
inherited

◆ setMapType()

void setMapType ( MapType  mapType)
inherited

◆ setPerspective()

void setPerspective ( MapPerspective  perspective)
inherited

◆ setRealityView()

void setRealityView ( boolean  show)

◆ setRouteGuidanceEnabled()

void setRouteGuidanceEnabled ( boolean  enabled)
inherited

◆ setShowVehicleIcon()

void setShowVehicleIcon ( boolean  show)
inherited

◆ setSignPosts()

void setSignPosts ( boolean  show)

◆ setSpeedDependendZoom()

void setSpeedDependendZoom ( boolean  enabled)

◆ toString()

String toString ( )
inherited

◆ writeToParcel()

void writeToParcel ( Parcel  destination,
int  flags 
)

Write this config data to a parcel (used onSaveInstanceState)

Parameters
destination- parcel to write to
flags- specific flags for the parcel

Reimplemented from IwMapviewerConfigBase.

Member Data Documentation

◆ CREATOR

final Creator<IwMapviewerConfig> CREATOR
static
Initial value:
= new Creator<IwMapviewerConfig>() {
public IwMapviewerConfig createFromParcel(Parcel in) {
return new IwMapviewerConfig(in);
}
public IwMapviewerConfig[] newArray(int size) {
return new IwMapviewerConfig[size];
}
}
Used for MapTripAPI specific configs.
Definition: IwMapviewerConfig.java:21
IwMapviewerConfig()
Definition: IwMapviewerConfig.java:73

Creator required to save config in a bundle


The documentation for this class was generated from the following file: