MapIconObject QML Type
The MapIconObject displays an icon on a Map. More...
Import Statement: | import Qt.labs.location 1.0 |
Properties
- content : Variant
- coordinate : Variant
- iconSize : Variant
Detailed Description
The MapIconObject displays an icon on a Map. The MapIconObject type only makes sense when contained in a Map or in a MapObjectView.
Property Documentation
This property holds the content to be used for the icon. The actual content of this property is somehow backend-dependent. The implementation for the raster engine accepts local urls or paths. Other implementations may accept additional content types.
The coordinate where the icon is going to be shown. What pixel of the icon matches the coordinate is somehow backend-dependent. For example, due to limitations, some backends might associate the center of the icon with the coordinate, others one of the corners. If there is a choice, backend developers should use the center of the icon as the default anchor point.
The behavior is also intended to be customizable with a DynamicParameter, when using backends that support anchoring arbitrary points of the icon to the coordinate. What kind of parameter to use and how to achieve this behavior is intended to be documented per-backend.