AppMap

Displays a map view with the current user position. More...

Import Statement: import VPlayApps 1.0
Since: V-Play 2.7.0
Inherits:

Map

Properties

Signals

Methods

Detailed Description

The AppMap component displays a map view with the current user position. AppMap is a sub-item of Map from the QtLocation module.

In order to use the AppMap component you have to provide a map provider plugin, for example MapBox. Then configure the plugin as described in the Qt Location Plugins documentation.

 AppMap {
   anchors.fill: parent
   plugin: Plugin {
     name: "<plugin-name>" // e.g. mapbox, ...
     parameters: [
       // set required plugin parameters here
     ]
   }
 }

Property Documentation

enableUserPosition : bool

A boolean value indicating whether the map should try to get the user's current position. The position can only be determined if the device is capable of getting a position from either GPS or other position sources.

This QML property was introduced in V-Play 2.8.2.

See also userPosition, userPositionAvailable, and showUserPosition.


showUserPosition : bool

A boolean value indicating whether the map should try to display the user's current position. The position can only be displayed if the device is capable of getting a position from either GPS or other position sources.

Changing this property to true also activates the enableUserPosition setting.

See also userPosition, enableUserPosition, and userPositionAvailable.


[read-only] userPosition : Position

Readonly property returning the current user's position as a Position QML type.

See also enableUserPosition, userPositionAvailable, and showUserPosition.


[read-only] userPositionAvailable : bool

Readonly property returning true if a user position is available with userPosition, otherwise false.

See also userPosition, enableUserPosition, and showUserPosition.


Signal Documentation

mapClicked()

Emitted if the map is clicked in an area where no markers are shown.


Method Documentation

zoomToUserPosition()

Centers the map at the current user's position if the position is available.


Videos

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support