hi
my offline map do not load when i go offline on windows and mobile android and iphone. it only work on mac and only the part which is zoomed get accessed after it goes offline
property string assetsPath: "../../../assets/"
property string mapPackageFileName: "new_topoNZ_map.mmpk"
MobileMapPackage {
id: mmpk
path: assetsPath + mapPackageFileName
onLoadStatusChanged: {
if (loadStatus !== Enums.LoadStatusLoaded) {
return;
}
if (mmpk.maps.length < 1) {
return;
}
mapView.map = mmpk.maps[0];
mapView.map.initialViewpoint = viewpoint;
}
onErrorChanged: {
console.log("Mobile Map Package Error: %1 %2".arg(error.message).arg(error.additionalMessage));
}
}
// *** declare mapview***//
MapView {
id:mapView
property real initialMapRotation: 0
Component.onCompleted: {
mmpk.load();
}
anchors {
left: parent.left
right: parent.right
top: parent.top
bottom: parent.bottom
}
}//End Mapview