Packagecom.distriqt.extension.nativemaps.objects
Classpublic class MapApplicationOpenOptions
InheritanceMapApplicationOpenOptions Inheritance Object

Options class for specifying options to pass to the native map application when opening. You must set at least one place on this object (place1 and place2 parameters).



Public Properties
 PropertyDefined By
  directionsType : String = d
The directions type This should be one of the following: MapApplicationOpenOptions.DIRECTIONS_DRIVING MapApplicationOpenOptions.DIRECTIONS_BIKING (only on Android) MapApplicationOpenOptions.DIRECTIONS_WALKING Biking/cycling directions mode is not available on iOS and will default to DRIVING mode.
MapApplicationOpenOptions
  mode : String = mapapplicationopenoptions:place
The view mode This should be MapApplicationOpenOptions.MODE_PLACE or MapApplicationOpenOptions.DIRECTIONS
MapApplicationOpenOptions
  name : String
An optional name to be used on the marker displayed.
MapApplicationOpenOptions
  place1 : *
The first place to be displayed on the map.
MapApplicationOpenOptions
  place2 : *
The second place to be displayed on the map.
MapApplicationOpenOptions
Public Methods
 MethodDefined By
  
Constructor
MapApplicationOpenOptions
Public Constants
 ConstantDefined By
  DIRECTIONS_BIKING : String = b
[static] Biking/cycling directions mode.
MapApplicationOpenOptions
  DIRECTIONS_DRIVING : String = d
[static] Driving directions mode
MapApplicationOpenOptions
  DIRECTIONS_WALKING : String = w
[static] Walking directions mode
MapApplicationOpenOptions
  MODE_DIRECTIONS : String = mapapplicationopenoptions:directions
[static] For showing directions between two places
MapApplicationOpenOptions
  MODE_PLACE : String = mapapplicationopenoptions:place
[static] For showing a single place/location
MapApplicationOpenOptions
Property Detail
directionsTypeproperty
public var directionsType:String = d

The directions type This should be one of the following: MapApplicationOpenOptions.DIRECTIONS_DRIVING MapApplicationOpenOptions.DIRECTIONS_BIKING (only on Android) MapApplicationOpenOptions.DIRECTIONS_WALKING

Biking/cycling directions mode is not available on iOS and will default to DRIVING mode.

modeproperty 
public var mode:String = mapapplicationopenoptions:place

The view mode This should be MapApplicationOpenOptions.MODE_PLACE or MapApplicationOpenOptions.DIRECTIONS

nameproperty 
public var name:String

An optional name to be used on the marker displayed. This is only applicable when using the MODE_PLACE map mode.

place1property 
public var place1:*

The first place to be displayed on the map. This is the origin point if you are using the DIRECTIONS mode. This can be either a String (map address) which will be geocoded, or a LatLng object instance.

place2property 
public var place2:*

The second place to be displayed on the map. This is the destination point if using the DIRECTIONS mode. This property is ignored if you are using the PLACE mode. This can be either a String (map address) which will be geocoded, or a LatLng object instance.

Constructor Detail
MapApplicationOpenOptions()Constructor
public function MapApplicationOpenOptions()

Constructor

Constant Detail
DIRECTIONS_BIKINGConstant
public static const DIRECTIONS_BIKING:String = b

Biking/cycling directions mode. Only supported on Android

DIRECTIONS_DRIVINGConstant 
public static const DIRECTIONS_DRIVING:String = d

Driving directions mode

DIRECTIONS_WALKINGConstant 
public static const DIRECTIONS_WALKING:String = w

Walking directions mode

MODE_DIRECTIONSConstant 
public static const MODE_DIRECTIONS:String = mapapplicationopenoptions:directions

For showing directions between two places

MODE_PLACEConstant 
public static const MODE_PLACE:String = mapapplicationopenoptions:place

For showing a single place/location