MapItemViewThe MapItemView is used to populate Map from a model. More... Inherits QtObject This type was introduced in Qt Location 5.0. PropertiesDetailed DescriptionThe MapItemView is used to populate Map with MapItems from a model. The MapItemView element only makes sense when contained in a Map, meaning that it has no standalone presentation. Example UsageThis example demonstrates how to use the MapViewItem element to display a route on a map: import QtQuick 2.0 import QtLocation 5.0 Map { RouteModel { id: routeModel } MapItemView { model: routeModel delegate: routeDelegate } Component { id: routeDelegate MapRoute { route: routeData line.color: "blue" line.width: 5 smooth: true opacity: 0.8 } } } Property DocumentationThis property holds the delegate which defines how each item in the model should be displayed. The Component must contain exactly one MapItem -derived element as the root element. This property holds whether the delegate objects created from the model are visible or not. Default value is true. This property holds the z-value of the MapItemView. It determines the z-value of the instantiated delegates. As with other Map items, objects with same z-value are drawn in insertion order. |