The MapImage element displays an image on a map. More...
This element was introduced in Mobility 1.2.
The image loaded from source will be drawn offset.x and offset.y pixels away from the on-screen position of coordinate.
If source does not point to an image or coordinate is invalid nothing will be displayed.
The status of the image loading can be monitored via status.
An example of map image:
MapImage { source: "landmarkmapmobile/images/landmarkstar.png" coordinate: landmark.coordinate }
The MapImage element is part of the QtMobility.location 1.2 module.
coordinate : Coordinate |
This property holds the coordinate at which to anchor the image.
This property group was introduced in Mobility 1.2.
These properties hold the offset from the on-screen position of coordinate at which the image should be displayed.
They both default to 0.
This property group was introduced in Mobility 1.2.
source : url |
This property holds the URL describing the location of the image to display.
The URL can be absolute or relative to where the QML file was loaded from, and can be a local file, a file embedded within a Qt Resource bundle, or a file retrieved from the network.
This property group was introduced in Mobility 1.2.
status : enumeration |
This property holds the status of image loading. It can be one of:
This property group was introduced in Mobility 1.2.
visible : bool |
This property holds a boolean corresponding to whether or not the image is visible.
This property group was introduced in Mobility 1.2.
z : int |
This property holds the z-value of the image.
Map objects are drawn in z-value order, and objects with the same z-value will be drawn in insertion order.
This property group was introduced in Mobility 1.2.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.