MapIconObject QML Type
The MapIconObject displays an icon on a Map. More...
|Import Statement:||import Qt.labs.location 1.0|
The MapIconObject displays an icon on a Map. The MapIconObject type only makes sense when contained in a Map or in a MapObjectView.
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.
© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.