map: use Item instead of Rectangle in MapWidget.qml

The root element is now an Item and also doesn't have explicit
anchors and dimensions as these will be handled by the parent:
- on desktop: a QQuickWidget
- on mobile: any QML based QQuickItem

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
Lubomir I. Ivanov 2017-07-15 00:55:29 +03:00 committed by Dirk Hohndel
parent b083795233
commit e9d4bdcf4e

View file

@ -2,12 +2,7 @@ import QtQuick 2.0
import QtLocation 5.3
import QtPositioning 5.3
Rectangle {
id: mapParent
anchors.fill: parent
width: 512
height: width
Item {
Plugin {
id: mapPlugin
name: "esri"