Qt Mobility Reference Documentation

QML MapPolygon Element

The MapPolygon element displays a polygon on a map. More...

Properties

Detailed Description

The polygon is specified in terms of an ordered list of coordinates. Any invalid coordinates in the list will be ignored.

If the list contains less than 3 valid coordinates the polygon will not be displayed.

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


Property Documentation

read-onlyborder.width : int

border.color : color

These properties hold the width and color used to draw the border of the circle.

The width is in pixels and is independent of the zoom level of the map.

The default values correspond to a black border with a width of 1 pixel.

For no line, use a width of 0 or a transparent color.


color : color

This property holds the color used to fill the circle.

The default value corresponds to a transparent color.


defaultpath : list<Coordinate>

This property holds the ordered list of coordinates which define the polygon.


selected : bool

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


visible : bool

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


zValue : int

This property holds the z-value of the polygon.

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.