RouteMapInvoker

Since: BlackBerry 10.0.0

#include <bb/platform/RouteMapInvoker>

To link against this class, add the following line to your .pro file: LIBS += -lbbplatform

An invoker used to trigger navigation through a map route.

This invoker can be used inside any widget type (in order to give it a certain visual representation) and thus, when that UI component is activated by the user, this invoker will trigger the actual request to display the route information.

Use example of this invoker in QML code (in conjunction with a button):
import bb.cascades 1.0
import bb.platform 1.0

Page {
  content: Container {
     layout: DockLayout {}

     attachedObjects:[  
        RouteMapInvoker {
           id: routeInvokerID
             
           // This example shows binding properties to pre-defined values
           // For example, you can request a route from Ottawa to Toronto, 
           // avoiding the highways.

           // You can bind properties to values coming from other widgets 
           // within this QML page (for example, text field's input)
           startLatitude    :  45.416667         // Ottawa's latitude
           startLongitude   : -75.7              // Ottawa's longitude
           startName        : "Ottawa, Ontario"
           startDescription : "Canada's capital"

           endLatitude      : 43.652527          // Toronto's latitude
           endLongitude     : -79.381961         // Toronto's longitude
           endName          : "Toronto, Ontario"
           endDescription   : "My trip's destination"

           // Specify any extra route options...
           avoidHighwaysEnabled : true

           // Specify what should be the center of the map.
           centerLatitude : 44.4555
           centerLongitude : -77.7744
           // 'heading' property is not explicitly set, 
           // so it will be: 0 (i.e., facing North).

        }
     ]

     // Make a Cascades button (or any Cascades widget) 
     // that can be used to trigger route invoker.
     Button {            
        verticalAlignment: VerticalAlignment.Center
        horizontalAlignment: HorizontalAlignment.Center

        text: "Get route"

         // When button is clicked, call the invoker by its ID
         onClicked: {
            routeInvokerID.go();
         }
     }
  }
}


Overview

Inheritance

bb::platform::MapInvoker
bb::platform::RouteMapInvoker

Public Functions Index

Public Slots Index

voidresetAvoidHighwaysEnabled ()
voidresetAvoidTollsEnabled ()
voidresetEndAddress ()
voidresetEndDescription ()
voidresetEndLatitude ()
voidresetEndLongitude ()
voidresetEndName ()
voidresetHandsFreeNavigation ()
voidresetNavigationMode ()
voidresetStartAddress ()
voidresetStartDescription ()
voidresetStartLatitude ()
voidresetStartLongitude ()
voidresetStartName ()
voidresetTransportationMode ()
voidsetAvoidHighwaysEnabled (bool enable)
voidsetAvoidTollsEnabled (bool enable)
voidsetEndAddress (const QString &address)
voidsetEndDescription (const QString &description)
voidsetEndLatitude (double value)
voidsetEndLongitude (double value)
voidsetEndName (const QString &name)
voidsetHandsFreeNavigation (bb::platform::HandsFreeNavigation::Type newValue)
voidsetNavigationMode (bb::platform::MapNavigationMode::Type mode)
voidsetStartAddress (const QString &address)
voidsetStartDescription (const QString &description)
voidsetStartLatitude (double value)
voidsetStartLongitude (double value)
voidsetStartName (const QString &name)
voidsetTransportationMode (bb::platform::MapTransportationMode::Type mode)
voidgo ()Inherited
voidresetAltitude ()Inherited
voidresetCenterLatitude ()Inherited
voidresetCenterLongitude ()Inherited
voidresetCurrentLocationEnabled ()Inherited
voidresetHeading ()Inherited
voidresetSearchLatitude ()Inherited
voidresetSearchLongitude ()Inherited
voidresetSearchMode ()Inherited
voidresetSearchText ()Inherited
voidsetAltitude (int value)Inherited
voidsetCenterLatitude (double value)Inherited
voidsetCenterLongitude (double value)Inherited
voidsetCurrentLocationEnabled (bool enable)Inherited
voidsetHeading (int value)Inherited
voidsetSearchLatitude (double value)Inherited
voidsetSearchLongitude (double value)Inherited
voidsetSearchMode (bb::platform::MapSearchMode::Type mode)Inherited
voidsetSearchText (const QString &text)Inherited

Signals Index

voidavoidHighwaysEnabledChanged (bool enable)
voidavoidTollsEnabledChanged (bool enable)
voidendAddressChanged (const QString &newEndAddress)
voidendDescriptionChanged (const QString &newEndDescription)
voidendLatitudeChanged (double newEndLatitude)
voidendLongitudeChanged (double newEndLongitude)
voidendNameChanged (const QString &newEndName)
voidhandsFreeNavigationChanged (bb::platform::HandsFreeNavigation::Type newValue)
voidnavigationModeChanged (bb::platform::MapNavigationMode::Type newMode)
voidstartAddressChanged (const QString &newStartAddress)
voidstartDescriptionChanged (const QString &newStartDescription)
voidstartLatitudeChanged (double newStartLatitude)
voidstartLongitudeChanged (double newStartLongitude)
voidstartNameChanged (const QString &newStartName)
voidtransportationModeChanged (bb::platform::MapTransportationMode::Type newMode)
voidaltitudeChanged (int newAltitude)Inherited
voidcenterLatitudeChanged (double newCenterLatitude)Inherited
voidcenterLongitudeChanged (double newCenterLongitude)Inherited
voidcurrentLocationEnabledChanged (bool enable)Inherited
voidheadingChanged (int newHeading)Inherited
voidsearchLatitudeChanged (double newSearchLatitude)Inherited
voidsearchLongitudeChanged (double newSearchLongitude)Inherited
voidsearchModeChanged (bb::platform::MapSearchMode::Type newSearchPattern)Inherited
voidsearchTextChanged (const QString &newSearchText)Inherited

Properties

bool avoidHighwaysEnabled

Specifies whether the route should avoid any highways.

Since:

BlackBerry 10.0.0

bool avoidTollsEnabled

Specifies whether the route should avoid any tolls.

Since:

BlackBerry 10.0.0

QString endAddress

Specifies the end location's free-form address.

Since:

BlackBerry 10.0.0

QString endDescription

Specifies the end location's description.

Since:

BlackBerry 10.0.0

double endLatitude

Specifies the end location's latitude.

Since:

BlackBerry 10.0.0

double endLongitude

Specifies the end location's longitude.

Since:

BlackBerry 10.0.0

QString endName

Specifies the end location's name.

Since:

BlackBerry 10.0.0

bb::platform::HandsFreeNavigation::Type handsFreeNavigation

Specifies the hands-free mode, as a way to start the navigation user experience.

See also:

bb::platform::HandsFreeNavigation for the list of possible values.

Since:

BlackBerry 10.3.0

bb::platform::MapNavigationMode::Type navigationMode

Specifies the navigation mode (for example use shortest route, use fastest route).

See also:

bb::platform::MapNavigationMode for the list of navigation modes.

Since:

BlackBerry 10.0.0

QString startAddress

Specifies the start location's free-form address.

Since:

BlackBerry 10.0.0

QString startDescription

Specifies the start location's description.

Since:

BlackBerry 10.0.0

double startLatitude

Specifies the start location's latitude.

Since:

BlackBerry 10.0.0

double startLongitude

Specifies the start location's latitude.

Since:

BlackBerry 10.0.0

QString startName

Specifies the start location's name.

Since:

BlackBerry 10.0.0

bb::platform::MapTransportationMode::Type transportationMode

Specifies the mode of transportation (for example, car transportation, pedestrian transportation).

See also:

bb::platform::MapTransportationMode for the list of modes of transportation.

Since:

BlackBerry 10.0.0

int altitudeInherited

Property specifying the map viewing altitude level.

Since:

BlackBerry 10.0.0

double centerLatitudeInherited

Property containing the map center's latitude.

Since:

BlackBerry 10.0.0

double centerLongitudeInherited

Property containing the map center's longitude.

Since:

BlackBerry 10.0.0

bool currentLocationEnabledInherited

Indicates whether Maps application should start GPS/GeoLocation upon start up.

This will cause the application to perform a transition to device's current location. This is disabled, by default.

Since:

BlackBerry 10.0.0

int headingInherited

Property specifying the orientation for displaying map's contents.

Values are in degrees. Valid values are from 0 to 360. 0 represents a North heading, and 180 represents South heading.

Since:

BlackBerry 10.0.0

double searchLatitudeInherited

Property containing the search center's latitude.

Since:

BlackBerry 10.0.0

double searchLongitudeInherited

Property containing the search center's longitude.

Since:

BlackBerry 10.0.0

bb::platform::MapSearchMode::Type searchModeInherited

Property which specifies a predefined search mode (for example, linear or radial).

See also:

bb::platform::MapSearchMode for the list of search modes.

Since:

BlackBerry 10.0.0

QString searchTextInherited

Property containing the actual user's search text.

Since:

BlackBerry 10.0.0

Public Functions

RouteMapInvoker (

Constructs a RouteMapInvoker instance.

This is the invoker through which users can set navigation-specific properties.

Parameters
parent

If not 0, the supplied parent will be responsible for deleting this instance.

Since:

BlackBerry 10.0.0

virtual~RouteMapInvoker ()

Destructor.

Since:

BlackBerry 10.0.0

QString endAddress ()

Gets the address of the end location (for a given navigation route).

Return:

The end point's address.

Since:

BlackBerry 10.0.0

QString endDescription ()

Gets the description of the end location (for a given navigation route).

Return:

The end point's description.

Since:

BlackBerry 10.0.0

double endLatitude ()

Gets the latitude value of the end location (for a given navigation route).

Return:

The end point's latitude.

Since:

BlackBerry 10.0.0

double endLongitude ()

Gets the longitude value of the end location (for a given navigation route).

Return:

The end point's longitude.

Since:

BlackBerry 10.0.0

QString endName ()

Gets the name of the end location (for a given navigation route).

Return:

The end point's name.

Since:

BlackBerry 10.0.0

bb::platform::HandsFreeNavigation::Type handsFreeNavigation ()

Indicates if the UI for the route navigation should be presented in a hands-free manner.

If undefined, then receiver should use their default behaviour.

See also:

bb::platform::HandsFreeNavigation for the list of possible values.

Return:

The hands free navigation value.

Since:

BlackBerry 10.3.0

bool isAvoidHighwaysEnabled ()

Indicates if the route should try to avoid any highways (as an option) in determining a navigation route between two locations.

Return:

true if the navigation route should try to avoid any highways, false otherwise.

Since:

BlackBerry 10.0.0

bool isAvoidTollsEnabled ()

Indicates if the route should try to avoid any tolls (as an option) in determining a navigation route between two locations.

Return:

true if the navigation route should try to avoid any tolls, false otherwise.

Since:

BlackBerry 10.0.0

bb::platform::MapNavigationMode::Type navigationMode ()

Gets the navigation mode for a given route (for example, try to find the shortest possible route or the fastest route).

See also:

bb::platform::MapNavigationMode for the list of navigation modes.

Return:

The navigation mode.

Since:

BlackBerry 10.0.0

QString startAddress ()

Gets the address of the starting location (for a given navigation route).

Return:

The starting point's address.

Since:

BlackBerry 10.0.0

QString startDescription ()

Gets the description of the starting location (for a given navigation route).

Return:

The starting point's description.

Since:

BlackBerry 10.0.0

double startLatitude ()

Gets the latitude value of the starting location (for a given navigation route).

Return:

The starting point's latitude.

Since:

BlackBerry 10.0.0

double startLongitude ()

Gets the longitude value of the starting location (for a given navigation route).

Return:

The starting point's longitude.

Since:

BlackBerry 10.0.0

QString startName ()

Gets the name of the starting location (for a given navigation route).

Return:

The starting point's name.

Since:

BlackBerry 10.0.0

bb::platform::MapTransportationMode::Type transportationMode ()

Gets the mode of transportation for a given route (for example, use pedestrian as the mode of transportation, or use a car).

See also:

bb::platform::MapTransportationMode for the list of modes of transportation.

Return:

The transportation mode.

Since:

BlackBerry 10.0.0

int altitude ()Inherited

Returns the map viewing altitude level.

Return:

The altitude level value.

Since:

BlackBerry 10.0.0

double centerLatitude ()Inherited

Returns the map center's latitude.

Return:

The map center's latitude.

Since:

BlackBerry 10.0.0

double centerLongitude ()Inherited

Returns the map center's longitude.

Return:

The map center's longitude.

Since:

BlackBerry 10.0.0

int heading ()Inherited

Returns the heading for the map's contents.

Return:

The heading value.

Since:

BlackBerry 10.0.0

bool isCurrentLocationEnabled ()Inherited

Returns true if map contents should show the current location of the device.

Return:

true if contents should display the current location of the device.

Since:

BlackBerry 10.0.0

double searchLatitude ()Inherited

Gets the search center's latitude.

Return:

The search center's latitude.

Since:

BlackBerry 10.0.0

double searchLongitude ()Inherited

Gets the search center's longitude.

Return:

The search center's longitude.

Since:

BlackBerry 10.0.0

bb::platform::MapSearchMode::Type searchMode ()Inherited

Returns the search mode that will be used when performing searches (for example, search along a path or a radial search starting from a given location).

See also:

bb::platform::MapSearchMode for the list of available search modes.

Return:

The search mode.

Since:

BlackBerry 10.0.0

QString searchText ()Inherited

Gets the search term.

The text value is free-form.

Return:

The search text to be used.

Since:

BlackBerry 10.0.0

Public Slots

void resetAvoidHighwaysEnabled ()

Disables the 'avoid highways' navigation option.

Since:

BlackBerry 10.0.0

void resetAvoidTollsEnabled ()

Disables the 'avoid tolls' navigation option.

Since:

BlackBerry 10.0.0

void resetEndAddress ()

Clears the name value of the end location.

Since:

BlackBerry 10.0.0

void resetEndDescription ()

Clears the description value of the end location.

Since:

BlackBerry 10.0.0

void resetEndLatitude ()

Resets the latitude value of the end location to an undefined value.

Since:

BlackBerry 10.0.0

void resetEndLongitude ()

Resets the longitude value of the end location to an undefined value.

Since:

BlackBerry 10.0.0

void resetEndName ()

Clears the name value of the end location.

Since:

BlackBerry 10.0.0

void resetHandsFreeNavigation ()

Resets hands-free navigation to its default value.

Since:

BlackBerry 10.3.0

void resetNavigationMode ()

Resets the navigation mode to bb::platform::MapNavigationMode::Undefined.

Since:

BlackBerry 10.0.0

void resetStartAddress ()

Clears the address value of the starting location.

Since:

BlackBerry 10.0.0

void resetStartDescription ()

Clears the description value of the starting location.

Since:

BlackBerry 10.0.0

void resetStartLatitude ()

Resets the latitude value of the starting location to an undefined value.

Since:

BlackBerry 10.0.0

void resetStartLongitude ()

Resets the longitude value of the starting location to an undefined value.

Since:

BlackBerry 10.0.0

void resetStartName ()

Clears the name value of the starting location.

Since:

BlackBerry 10.0.0

void resetTransportationMode ()

Resets the mode of transportation to bb::platform::MapTransportationMode::Undefined.

Since:

BlackBerry 10.0.0

void setAvoidHighwaysEnabled (
  • boolenable)

Enables (or disables) the 'avoid highways' navigation option.

Parameters
enable

true if navigation is to avoid any highways, false if a route can include highways.

Since:

BlackBerry 10.0.0

void setAvoidTollsEnabled (
  • boolenable)

Enables (or disables) the 'avoid tolls' navigation option.

Parameters
enable

true if navigation is to avoid any tolls, false if a route can include tolls.

Since:

BlackBerry 10.0.0

void setEndAddress (

Sets the address of the starting location (for a given navigation route).

Parameters
address

The address value.

Since:

BlackBerry 10.0.0

void setEndDescription (

Sets the description of the end location (for a given navigation route).

Parameters
description

The description value.

Since:

BlackBerry 10.0.0

void setEndLatitude (
  • doublevalue)

Sets the latitude value of the end location (for a given navigation route).

If the end location is not set, it is assumed that the end location is the device's current location.

Parameters
value

The latitude value.

Since:

BlackBerry 10.0.0

void setEndLongitude (
  • doublevalue)

Sets the longitude value of the end location (for a given navigation route).

If the end location is not set, it is assumed that the end location is the device's current location.

Parameters
value

The longitude value.

Since:

BlackBerry 10.0.0

void setEndName (

Sets the name of the end location (for a given navigation route).

Parameters
name

The name value.

Since:

BlackBerry 10.0.0

void setHandsFreeNavigation (

Sets the hands-free navigation.

Enabled if route navigation is to use hands free approach, Disabled if navigating the route needs user's input or Undefined if receiver should use their default behaviour.

Parameters
newValue

The hands-free navigation value. See bb::platform::HandsFreeNavigation for the list of possible values. By default, this value is set to Undefined.

Since:

BlackBerry 10.3.0

void setNavigationMode (

Sets the navigation mode.

Parameters
mode

The navigation mode value. See bb::platform::MapNavigationMode for the list of navigation modes.

Since:

BlackBerry 10.0.0

void setStartAddress (

Sets the address of the starting location (for a given navigation route).

Parameters
address

The address value.

Since:

BlackBerry 10.0.0

void setStartDescription (

Sets the description of the starting location (for a given navigation route).

Parameters
description

The description value.

Since:

BlackBerry 10.0.0

void setStartLatitude (
  • doublevalue)

Sets the latitude value of the starting location (for a given navigation route).

If the start location is not set, it is assumed that the start location is the device's current location.

Parameters
value

The latitude value.

Since:

BlackBerry 10.0.0

void setStartLongitude (
  • doublevalue)

Sets the longitude value of the starting location (for a given navigation route).

If the start location is not set, it is assumed that the start location is the device's current location.

Parameters
value

The longitude value.

Since:

BlackBerry 10.0.0

void setStartName (

Sets the name of the starting location (for a given navigation route).

Parameters
name

The name value.

Since:

BlackBerry 10.0.0

void setTransportationMode (

Sets the mode of transportation.

Parameters
mode

The mode of transportation value. See bb::platform::MapTransportationMode for the list of modes of transportation.

Since:

BlackBerry 10.0.0

void go ()Inherited

Triggers the actual request.

Depending on the actual invoker instance used, this will send the appropriate request to the Maps application, through the Invocation Framework.

Since:

BlackBerry 10.0.0

void resetAltitude ()Inherited

Resets the map viewing altitude to an undefined value.

Since:

BlackBerry 10.0.0

void resetCenterLatitude ()Inherited

Resets the map center's latitude to undefined value.

Since:

BlackBerry 10.0.0

void resetCenterLongitude ()Inherited

Resets the map center's longitude to an undefined value.

Since:

BlackBerry 10.0.0

void resetCurrentLocationEnabled ()Inherited

Disables the display of the current location of the device.

Since:

BlackBerry 10.0.0

void resetHeading ()Inherited

Resets the map's heading to an undefined value.

Since:

BlackBerry 10.0.0

void resetSearchLatitude ()Inherited

Resets the search latitude to an undefined value.

Since:

BlackBerry 10.0.0

void resetSearchLongitude ()Inherited

Resets the search longitude to an undefined value.

Since:

BlackBerry 10.0.0

void resetSearchMode ()Inherited

Resets the search mode to radial search (bb::platform::MapSearchMode::Radial).

Since:

BlackBerry 10.0.0

void resetSearchText ()Inherited

Clears the search text.

Since:

BlackBerry 10.0.0

void setAltitude (
  • intvalue)
Inherited

Sets the map viewing altitude level.

Parameters
value

The new map viewing altitude.

Since:

BlackBerry 10.0.0

void setCenterLatitude (
  • doublevalue)
Inherited

Sets the map center's latitude.

Parameters
value

The new latitude of the map's center.

Since:

BlackBerry 10.0.0

void setCenterLongitude (
  • doublevalue)
Inherited

Sets the map center's longitude.

Parameters
value

The new longitude of the map's center.

Since:

BlackBerry 10.0.0

void setCurrentLocationEnabled (
  • boolenable)
Inherited

Enables (or disables) the display of the current location of the device.

Parameters
enable

true if current location of the device should be be displayed, false otherwise.

Since:

BlackBerry 10.0.0

void setHeading (
  • intvalue)
Inherited

Sets the heading for the map's contents.

Valid values are in degrees, between 0 and 360.
Parameters
value

The new heading.

Since:

BlackBerry 10.0.0

void setSearchLatitude (
  • doublevalue)
Inherited

Sets the search center's latitude.

Parameters
value

The new search latitude.

Since:

BlackBerry 10.0.0

void setSearchLongitude (
  • doublevalue)
Inherited

Sets the search center's longitude.

Parameters
value

The new search longitude.

Since:

BlackBerry 10.0.0

void setSearchMode (Inherited

Sets the search mode.

Parameters
mode

The search mode.

See also:

bb::platform::MapSearchMode for the list of available modes.

Since:

BlackBerry 10.0.0

void setSearchText (Inherited

Sets the search term.

Parameters
text

The search text.

Since:

BlackBerry 10.0.0

Signals

void avoidHighwaysEnabledChanged (
  • boolenable)

Emitted when the flag for avoiding highways changes.

Listeners should update the view to display the route using this new option value.

Parameters
enable

Indicates if highway avoidance is now enabled or not.

Since:

BlackBerry 10.0.0

void avoidTollsEnabledChanged (
  • boolenable)

Emitted when the flag for avoiding road tolls changes.

Listeners should update the view to display the route using this new option value.

Parameters
enable

Indicates if toll avoidance is now enabled or not.

Since:

BlackBerry 10.0.0

void endAddressChanged (

Emitted when the address of the end location changes.

Listeners should update the view to display the end location's new address.

Parameters
newEndAddress

The new address of the end location.

Since:

BlackBerry 10.0.0

void endDescriptionChanged (

Emitted when the description of the end location changes.

Listeners should update the view to display the end location's new description.

Parameters
newEndDescription

The new description of the end location.

Since:

BlackBerry 10.0.0

void endLatitudeChanged (
  • doublenewEndLatitude)

Emitted when the latitude coordinate of the end location changes.

Listeners should update the view to display the end location's new position.

Parameters
newEndLatitude

The new latitude of the end location.

Since:

BlackBerry 10.0.0

void endLongitudeChanged (
  • doublenewEndLongitude)

Emitted when the longitude coordinate of the end location changes.

Listeners should update the view to display the end location's new position.

Parameters
newEndLongitude

The new longitude of the end location.

Since:

BlackBerry 10.0.0

void endNameChanged (

Emitted when the name of the end location changes.

Listeners should update the view to display the end location's new name.

Parameters
newEndName

New name of the end location.

Since:

BlackBerry 10.0.0

void handsFreeNavigationChanged (

Emitted when hands-free navigation changes.

Listeners should update the view to display the route using this new option value.

Parameters
newValue

The new hands-free navigation value. See bb::platform::HandsFreeNavigation for the list of possible values.

Since:

BlackBerry 10.3.0

void navigationModeChanged (

Emitted when the navigation mode option of a route changes.

Listeners should update the view to display the route using this new option value.

Parameters
newMode

The new navigation mode. See bb::platform::MapNavigationMode for the list of navigation modes.

Since:

BlackBerry 10.0.0

void startAddressChanged (

Emitted when the address of the start location changes.

Listeners should update the view to display the start location's new address.

Parameters
newStartAddress

The new address of the start location.

Since:

BlackBerry 10.0.0

void startDescriptionChanged (
  • const QString &newStartDescription)

Emitted when the description of the start location changes.

Listeners should update the view to display the start location's new description.

Parameters
newStartDescription

The new description of the start location.

Since:

BlackBerry 10.0.0

void startLatitudeChanged (
  • doublenewStartLatitude)

Emitted when the latitude coordinate of the start location changes.

Listeners should update the view to display the start location's new position.

Parameters
newStartLatitude

The new latitude of the start location.

Since:

BlackBerry 10.0.0

void startLongitudeChanged (
  • doublenewStartLongitude)

Emitted when the longitude coordinate of the start location changes.

Listeners should update the view to display the start location's new position.

Parameters
newStartLongitude

The new longitude of the start location.

Since:

BlackBerry 10.0.0

void startNameChanged (

Emitted when the name of the start location changes.

Listeners should update the view to display the start location's new name.

Parameters
newStartName

The new name of the start location.

Since:

BlackBerry 10.0.0

void transportationModeChanged (

Emitted when the mode of transportation of a route changes.

Listeners should update the view to display the route using this new option value.

Parameters
newMode

The new transportation mode. See bb::platform::MapTransportationMode for the list of modes of transportation.

Since:

BlackBerry 10.0.0

void altitudeChanged (
  • intnewAltitude)
Inherited

Emitted when the viewing altitude changes.

Listeners should update the view to reflect the new altitude.

Parameters
newAltitude

The new value of the viewing altitude.

Since:

BlackBerry 10.0.0

void centerLatitudeChanged (
  • doublenewCenterLatitude)
Inherited

Emitted when the latitude coordinate of the map's center changes.

Listeners should update the view to reflect the new map center.

Parameters
newCenterLatitude

The new latitude of the map's center.

Since:

BlackBerry 10.0.0

void centerLongitudeChanged (
  • doublenewCenterLongitude)
Inherited

Emitted when the longitude coordinate of the map's center changes.

Listeners should update the view to reflect the new map center.

Parameters
newCenterLongitude

The new longitude of the map's center.

Since:

BlackBerry 10.0.0

void currentLocationEnabledChanged (
  • boolenable)
Inherited

Emitted when the flag controlling the display of the current device location changes.

Listeners should update the view to display the current location.

Parameters
enable

The new value of the flag.

Since:

BlackBerry 10.0.0

void headingChanged (
  • intnewHeading)
Inherited

Emitted when the map's heading changes.

Listeners should update the view to reflect the new heading.

Parameters
newHeading

The new value of the map's heading.

Since:

BlackBerry 10.0.0

void searchLatitudeChanged (
  • doublenewSearchLatitude)
Inherited

Emitted when the latitude coordinate of search location changes.

Listeners should update the view to reflect the new search position.

Parameters
newSearchLatitude

The new value of the latitude coordinate.

Since:

BlackBerry 10.0.0

void searchLongitudeChanged (
  • doublenewSearchLongitude)
Inherited

Emitted when the longitude coordinate of search location changes.

Listeners should update the view to reflect the new search position.

Parameters
newSearchLongitude

The new value of the longitude coordinate.

Since:

BlackBerry 10.0.0

void searchModeChanged (Inherited

Emitted when the search mode changes.

Listeners should update to reflect the new search mode.

Parameters
newSearchPattern

The new search mode.

See also:

bb::platform::MapSearchMode for the list of available search modes.

Since:

BlackBerry 10.0.0

void searchTextChanged (Inherited

Emitted when the search text changes.

Listeners should update to reflect the new search text.

Parameters
newSearchText

The new value of the search text.

Since:

BlackBerry 10.0.0

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus