AppSettings.cc
const char *AppSettings::parameterDirectory ="Parameters"
const char *AppSettings::telemetryDirectory ="Telemetry"
const char *AppSettings::missionrDirectory ="Missions"
设置里面的offlineMap选项
在OffineMap.qml中
QGCViewPanel{
}
点击OfflineMap出现瓦片地图
点击Add New Set
出现如下所示
Item{
id:addNewSetView
anchors.fill:parent
visible:parent
Column{
text:"Show zoom previews"
visible:!_showPreview
onClicked:_showPreview=!_showPreview
}
Map{
id:minZoomPreview
width:addNewSetView.width/4
}
}
在FlightMapSettings.h中定义了
typedef enum{
}
//FlightMap.qml中
Map{
id:_map;
zoomLevel:QGroundControl.flightMapZoom
plugin: Plugin{
name:"QGroundControl"
}
}
QGroundControl地图组件中在QGCLocationPlugin中:
有个json文件中配置的:
{
"Keys": ["qgc-maps"],
"Provider": "QGroundControl",
"Version": 101,
"Experimental": false,
"Features": [
"OnlineMappingFeature",
"OnlineGeocodingFeature",
"ReverseGeocodingFeature"
]
}