QtMobility Reference Documentation

QML MapImage Element

The MapImage element displays an image on a map. More...


Detailed Description

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.

Property Documentation

read-onlycoordinate : Coordinate

This property holds the coordinate at which to anchor the image.

read-onlyoffset.x : int

read-onlyoffset.y : int

These properties hold the offset from the on-screen position of coordinate at which the image should be displayed.

They both default to 0.

read-onlyselected : bool

This property holds a boolean corresponding to whether or not the image is selected.

read-onlysource : 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.

read-onlystatus : enumeration

This property holds the status of image loading. It can be one of:

  • MapImage.Null - no image has been set
  • MapImage.Ready - the image has been loaded
  • MapImage.Loading - the image is currently being loaded
  • MapImage.Error - an error occurred while loading the image

read-onlyvisible : bool

This property holds a boolean corresponding to whether or not the image is visible.

read-onlyz : 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.


Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.

[0]; s.parentNode.insertBefore(ga, s); })();