summaryrefslogtreecommitdiff
path: root/examples/location/places_map/places_map.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/location/places_map/places_map.qml')
-rw-r--r--examples/location/places_map/places_map.qml11
1 files changed, 6 insertions, 5 deletions
diff --git a/examples/location/places_map/places_map.qml b/examples/location/places_map/places_map.qml
index 80a8f0e0..aaa56473 100644
--- a/examples/location/places_map/places_map.qml
+++ b/examples/location/places_map/places_map.qml
@@ -50,15 +50,16 @@ Rectangle {
//! [PlaceSearchModel]
//! [Places MapItemView]
- Map {
- id: map
+ MapView {
+ id: view
anchors.fill: parent
- plugin: myPlugin;
- center: positionSource.lastSearchPosition
- zoomLevel: 13
+ map.plugin: myPlugin;
+ map.center: positionSource.lastSearchPosition
+ map.zoomLevel: 13
MapItemView {
model: searchModel
+ parent: view.map
delegate: MapQuickItem {
coordinate: place.location.coordinate