Qt Mobility Reference Documentation

QML MapImage Element

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

  • List of all members, including inherited members
  • Properties

    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.

    The MapImage element is part of the QtMobility.location 1.1 module.

    Property Documentation

    coordinate : Coordinate

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


    offset.x : int

    offset.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.


    selected : bool

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


    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.


    status : 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

    visible : bool

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


    zValue : 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.


    X

    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.