subsurface/mobile-widgets/qml/MapWidget.qml
Lubomir I. Ivanov e9d4bdcf4e 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>
2017-07-28 07:31:11 -07:00

16 lines
189 B
QML

import QtQuick 2.0
import QtLocation 5.3
import QtPositioning 5.3
Item {
Plugin {
id: mapPlugin
name: "esri"
}
Map {
anchors.fill: parent
plugin: mapPlugin
zoomLevel: 1
}
}