Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
b5e7b4d9
Commit
b5e7b4d9
authored
May 15, 2017
by
Gus Grubba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Mapbox capitalization.
parent
22595287
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
118 additions
and
118 deletions
+118
-118
QGCMapEngine.cpp
src/QtLocationPlugin/QGCMapEngine.cpp
+19
-19
QGCMapUrlEngine.cpp
src/QtLocationPlugin/QGCMapUrlEngine.cpp
+56
-56
QGCMapUrlEngine.h
src/QtLocationPlugin/QGCMapUrlEngine.h
+14
-14
QGeoMapReplyQGC.cpp
src/QtLocationPlugin/QGeoMapReplyQGC.cpp
+3
-3
QGeoMapReplyQGC.h
src/QtLocationPlugin/QGeoMapReplyQGC.h
+1
-1
QGeoTiledMappingManagerEngineQGC.cpp
src/QtLocationPlugin/QGeoTiledMappingManagerEngineQGC.cpp
+15
-15
OfflineMap.qml
src/QtLocationPlugin/QMLControl/OfflineMap.qml
+3
-3
App.SettingsGroup.json
src/Settings/App.SettingsGroup.json
+3
-3
AppSettings.cc
src/Settings/AppSettings.cc
+1
-1
FlightMap.SettingsGroup.json
src/Settings/FlightMap.SettingsGroup.json
+1
-1
FlightMapSettings.cc
src/Settings/FlightMapSettings.cc
+1
-1
FlightMapSettings.h
src/Settings/FlightMapSettings.h
+1
-1
No files found.
src/QtLocationPlugin/QGCMapEngine.cpp
View file @
b5e7b4d9
...
...
@@ -64,24 +64,24 @@ stQGeoTileCacheQGCMapTypes kMapTypes[] = {
#define NUM_MAPS (sizeof(kMapTypes) / sizeof(stQGeoTileCacheQGCMapTypes))
stQGeoTileCacheQGCMapTypes
kMap
B
oxTypes
[]
=
{
{
"Map
Box Street Map"
,
UrlFactory
::
MapB
oxStreets
},
{
"Map
Box Satellite Map"
,
UrlFactory
::
MapB
oxSatellite
},
{
"Map
Box High Contrast Map"
,
UrlFactory
::
MapB
oxHighContrast
},
{
"Map
Box Light Map"
,
UrlFactory
::
MapB
oxLight
},
{
"Map
Box Dark Map"
,
UrlFactory
::
MapB
oxDark
},
{
"Map
Box Hybrid Map"
,
UrlFactory
::
MapB
oxHybrid
},
{
"Map
Box Wheat Paste Map"
,
UrlFactory
::
MapB
oxWheatPaste
},
{
"Map
Box Streets Basic Map"
,
UrlFactory
::
MapB
oxStreetsBasic
},
{
"Map
Box Comic Map"
,
UrlFactory
::
MapB
oxComic
},
{
"Map
Box Outdoors Map"
,
UrlFactory
::
MapB
oxOutdoors
},
{
"Map
Box Run, Byke and Hike Map"
,
UrlFactory
::
MapB
oxRunBikeHike
},
{
"Map
Box Pencil Map"
,
UrlFactory
::
MapB
oxPencil
},
{
"Map
Box Pirates Map"
,
UrlFactory
::
MapB
oxPirates
},
{
"Map
Box Emerald Map"
,
UrlFactory
::
MapB
oxEmerald
}
stQGeoTileCacheQGCMapTypes
kMap
b
oxTypes
[]
=
{
{
"Map
box Street Map"
,
UrlFactory
::
Mapb
oxStreets
},
{
"Map
box Satellite Map"
,
UrlFactory
::
Mapb
oxSatellite
},
{
"Map
box High Contrast Map"
,
UrlFactory
::
Mapb
oxHighContrast
},
{
"Map
box Light Map"
,
UrlFactory
::
Mapb
oxLight
},
{
"Map
box Dark Map"
,
UrlFactory
::
Mapb
oxDark
},
{
"Map
box Hybrid Map"
,
UrlFactory
::
Mapb
oxHybrid
},
{
"Map
box Wheat Paste Map"
,
UrlFactory
::
Mapb
oxWheatPaste
},
{
"Map
box Streets Basic Map"
,
UrlFactory
::
Mapb
oxStreetsBasic
},
{
"Map
box Comic Map"
,
UrlFactory
::
Mapb
oxComic
},
{
"Map
box Outdoors Map"
,
UrlFactory
::
Mapb
oxOutdoors
},
{
"Map
box Run, Byke and Hike Map"
,
UrlFactory
::
Mapb
oxRunBikeHike
},
{
"Map
box Pencil Map"
,
UrlFactory
::
Mapb
oxPencil
},
{
"Map
box Pirates Map"
,
UrlFactory
::
Mapb
oxPirates
},
{
"Map
box Emerald Map"
,
UrlFactory
::
Mapb
oxEmerald
}
};
#define NUM_MAPBOXMAPS (sizeof(kMap
B
oxTypes) / sizeof(stQGeoTileCacheQGCMapTypes))
#define NUM_MAPBOXMAPS (sizeof(kMap
b
oxTypes) / sizeof(stQGeoTileCacheQGCMapTypes))
stQGeoTileCacheQGCMapTypes
kEsriTypes
[]
=
{
{
"Esri Street Map"
,
UrlFactory
::
EsriWorldStreet
},
...
...
@@ -329,8 +329,8 @@ QGCMapEngine::getTypeFromName(const QString& name)
return
kMapTypes
[
i
].
type
;
}
for
(
i
=
0
;
i
<
NUM_MAPBOXMAPS
;
i
++
)
{
if
(
name
.
compare
(
kMap
B
oxTypes
[
i
].
name
,
Qt
::
CaseInsensitive
)
==
0
)
return
kMap
B
oxTypes
[
i
].
type
;
if
(
name
.
compare
(
kMap
b
oxTypes
[
i
].
name
,
Qt
::
CaseInsensitive
)
==
0
)
return
kMap
b
oxTypes
[
i
].
type
;
}
for
(
i
=
0
;
i
<
NUM_ESRIMAPS
;
i
++
)
{
if
(
name
.
compare
(
kEsriTypes
[
i
].
name
,
Qt
::
CaseInsensitive
)
==
0
)
...
...
@@ -349,7 +349,7 @@ QGCMapEngine::getMapNameList()
}
if
(
!
qgcApp
()
->
toolbox
()
->
settingsManager
()
->
appSettings
()
->
mapboxToken
()
->
rawValue
().
toString
().
isEmpty
())
{
for
(
size_t
i
=
0
;
i
<
NUM_MAPBOXMAPS
;
i
++
)
{
mapList
<<
kMap
B
oxTypes
[
i
].
name
;
mapList
<<
kMap
b
oxTypes
[
i
].
name
;
}
}
if
(
!
qgcApp
()
->
toolbox
()
->
settingsManager
()
->
appSettings
()
->
esriToken
()
->
rawValue
().
toString
().
isEmpty
())
{
...
...
src/QtLocationPlugin/QGCMapUrlEngine.cpp
View file @
b5e7b4d9
...
...
@@ -100,20 +100,20 @@ UrlFactory::getImageFormat(MapType type, const QByteArray& image)
case MapQuestSat:
case OpenStreetMap:
*/
case
Map
B
oxStreets
:
case
Map
B
oxLight
:
case
Map
B
oxDark
:
case
Map
B
oxSatellite
:
case
Map
B
oxHybrid
:
case
Map
B
oxWheatPaste
:
case
Map
B
oxStreetsBasic
:
case
Map
B
oxComic
:
case
Map
B
oxOutdoors
:
case
Map
B
oxRunBikeHike
:
case
Map
B
oxPencil
:
case
Map
B
oxPirates
:
case
Map
B
oxEmerald
:
case
Map
B
oxHighContrast
:
case
Map
b
oxStreets
:
case
Map
b
oxLight
:
case
Map
b
oxDark
:
case
Map
b
oxSatellite
:
case
Map
b
oxHybrid
:
case
Map
b
oxWheatPaste
:
case
Map
b
oxStreetsBasic
:
case
Map
b
oxComic
:
case
Map
b
oxOutdoors
:
case
Map
b
oxRunBikeHike
:
case
Map
b
oxPencil
:
case
Map
b
oxPirates
:
case
Map
b
oxEmerald
:
case
Map
b
oxHighContrast
:
case
GoogleSatellite
:
case
BingSatellite
:
case
BingHybrid
:
...
...
@@ -323,65 +323,65 @@ UrlFactory::_getURL(MapType type, int x, int y, int zoom, QNetworkAccessManager*
case
EsriTerrain
:
return
QString
(
"http://server.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer/tile/%1/%2/%3"
).
arg
(
zoom
).
arg
(
y
).
arg
(
x
);
case
Map
B
oxStreets
:
case
Map
B
oxLight
:
case
Map
B
oxDark
:
case
Map
B
oxSatellite
:
case
Map
B
oxHybrid
:
case
Map
B
oxWheatPaste
:
case
Map
B
oxStreetsBasic
:
case
Map
B
oxComic
:
case
Map
B
oxOutdoors
:
case
Map
B
oxRunBikeHike
:
case
Map
B
oxPencil
:
case
Map
B
oxPirates
:
case
Map
B
oxEmerald
:
case
Map
B
oxHighContrast
:
case
Map
b
oxStreets
:
case
Map
b
oxLight
:
case
Map
b
oxDark
:
case
Map
b
oxSatellite
:
case
Map
b
oxHybrid
:
case
Map
b
oxWheatPaste
:
case
Map
b
oxStreetsBasic
:
case
Map
b
oxComic
:
case
Map
b
oxOutdoors
:
case
Map
b
oxRunBikeHike
:
case
Map
b
oxPencil
:
case
Map
b
oxPirates
:
case
Map
b
oxEmerald
:
case
Map
b
oxHighContrast
:
{
QString
mapBoxToken
=
qgcApp
()
->
toolbox
()
->
settingsManager
()
->
appSettings
()
->
mapboxToken
()
->
rawValue
().
toString
();
if
(
!
mapBoxToken
.
isEmpty
())
{
QString
server
=
"https://api.mapbox.com/v4/"
;
switch
(
type
)
{
case
Map
B
oxStreets
:
case
Map
b
oxStreets
:
server
+=
"mapbox.streets"
;
break
;
case
Map
B
oxLight
:
case
Map
b
oxLight
:
server
+=
"mapbox.light"
;
break
;
case
Map
B
oxDark
:
case
Map
b
oxDark
:
server
+=
"mapbox.dark"
;
break
;
case
Map
B
oxSatellite
:
case
Map
b
oxSatellite
:
server
+=
"mapbox.satellite"
;
break
;
case
Map
B
oxHybrid
:
case
Map
b
oxHybrid
:
server
+=
"mapbox.streets-satellite"
;
break
;
case
Map
B
oxWheatPaste
:
case
Map
b
oxWheatPaste
:
server
+=
"mapbox.wheatpaste"
;
break
;
case
Map
B
oxStreetsBasic
:
case
Map
b
oxStreetsBasic
:
server
+=
"mapbox.streets-basic"
;
break
;
case
Map
B
oxComic
:
case
Map
b
oxComic
:
server
+=
"mapbox.comic"
;
break
;
case
Map
B
oxOutdoors
:
case
Map
b
oxOutdoors
:
server
+=
"mapbox.outdoors"
;
break
;
case
Map
B
oxRunBikeHike
:
case
Map
b
oxRunBikeHike
:
server
+=
"mapbox.run-bike-hike"
;
break
;
case
Map
B
oxPencil
:
case
Map
b
oxPencil
:
server
+=
"mapbox.pencil"
;
break
;
case
Map
B
oxPirates
:
case
Map
b
oxPirates
:
server
+=
"mapbox.pirates"
;
break
;
case
Map
B
oxEmerald
:
case
Map
b
oxEmerald
:
server
+=
"mapbox.emerald"
;
break
;
case
Map
B
oxHighContrast
:
case
Map
b
oxHighContrast
:
server
+=
"mapbox.high-contrast"
;
break
;
default:
...
...
@@ -546,30 +546,30 @@ UrlFactory::averageSizeForType(MapType type)
return
AVERAGE_BING_STREET_MAP
;
case
GoogleSatellite
:
return
AVERAGE_GOOGLE_SAT_MAP
;
case
Map
B
oxSatellite
:
case
Map
b
oxSatellite
:
return
AVERAGE_MAPBOX_SAT_MAP
;
case
BingHybrid
:
case
BingSatellite
:
return
AVERAGE_BING_SAT_MAP
;
case
GoogleTerrain
:
return
AVERAGE_GOOGLE_TERRAIN_MAP
;
case
Map
B
oxStreets
:
case
Map
B
oxStreetsBasic
:
case
Map
B
oxRunBikeHike
:
case
Map
b
oxStreets
:
case
Map
b
oxStreetsBasic
:
case
Map
b
oxRunBikeHike
:
return
AVERAGE_MAPBOX_STREET_MAP
;
case
GoogleLabels
:
case
Map
B
oxDark
:
case
Map
B
oxLight
:
case
Map
B
oxOutdoors
:
case
Map
B
oxPencil
:
case
Map
b
oxDark
:
case
Map
b
oxLight
:
case
Map
b
oxOutdoors
:
case
Map
b
oxPencil
:
case
OpenStreetMap
:
case
GoogleHybrid
:
case
Map
B
oxComic
:
case
Map
B
oxEmerald
:
case
Map
B
oxHighContrast
:
case
Map
B
oxHybrid
:
case
Map
B
oxPirates
:
case
Map
B
oxWheatPaste
:
case
Map
b
oxComic
:
case
Map
b
oxEmerald
:
case
Map
b
oxHighContrast
:
case
Map
b
oxHybrid
:
case
Map
b
oxPirates
:
case
Map
b
oxWheatPaste
:
default:
break
;
}
...
...
src/QtLocationPlugin/QGCMapUrlEngine.h
View file @
b5e7b4d9
...
...
@@ -55,20 +55,20 @@ public:
MapQuestSat = 701,
*/
Map
B
oxStreets
=
6000
,
Map
B
oxLight
=
6001
,
Map
B
oxDark
=
6002
,
Map
B
oxSatellite
=
6003
,
Map
B
oxHybrid
=
6004
,
Map
B
oxWheatPaste
=
6005
,
Map
B
oxStreetsBasic
=
6006
,
Map
B
oxComic
=
6007
,
Map
B
oxOutdoors
=
6008
,
Map
B
oxRunBikeHike
=
6009
,
Map
B
oxPencil
=
6010
,
Map
B
oxPirates
=
6011
,
Map
B
oxEmerald
=
6012
,
Map
B
oxHighContrast
=
6013
,
Map
b
oxStreets
=
6000
,
Map
b
oxLight
=
6001
,
Map
b
oxDark
=
6002
,
Map
b
oxSatellite
=
6003
,
Map
b
oxHybrid
=
6004
,
Map
b
oxWheatPaste
=
6005
,
Map
b
oxStreetsBasic
=
6006
,
Map
b
oxComic
=
6007
,
Map
b
oxOutdoors
=
6008
,
Map
b
oxRunBikeHike
=
6009
,
Map
b
oxPencil
=
6010
,
Map
b
oxPirates
=
6011
,
Map
b
oxEmerald
=
6012
,
Map
b
oxHighContrast
=
6013
,
EsriWorldStreet
=
7000
,
EsriWorldSatellite
=
7001
,
...
...
src/QtLocationPlugin/QGeoMapReplyQGC.cpp
View file @
b5e7b4d9
...
...
@@ -62,12 +62,12 @@ QGeoTiledMapReplyQGC::QGeoTiledMapReplyQGC(QNetworkAccessManager *networkManager
,
_networkManager
(
networkManager
)
{
if
(
_request
.
url
().
isEmpty
())
{
if
(
!
_badMap
B
ox
.
size
())
{
if
(
!
_badMap
b
ox
.
size
())
{
QFile
b
(
":/res/notile.png"
);
if
(
b
.
open
(
QFile
::
ReadOnly
))
_badMap
B
ox
=
b
.
readAll
();
_badMap
b
ox
=
b
.
readAll
();
}
setMapImageData
(
_badMap
B
ox
);
setMapImageData
(
_badMap
b
ox
);
setMapImageFormat
(
"png"
);
setFinished
(
true
);
setCached
(
false
);
...
...
src/QtLocationPlugin/QGeoMapReplyQGC.h
View file @
b5e7b4d9
...
...
@@ -75,7 +75,7 @@ private:
QNetworkReply
*
_reply
;
QNetworkRequest
_request
;
QNetworkAccessManager
*
_networkManager
;
QByteArray
_badMap
B
ox
;
QByteArray
_badMap
b
ox
;
QByteArray
_badTile
;
QTimer
_timer
;
static
int
_requestCount
;
...
...
src/QtLocationPlugin/QGeoTiledMappingManagerEngineQGC.cpp
View file @
b5e7b4d9
...
...
@@ -132,23 +132,23 @@ QGeoTiledMappingManagerEngineQGC::QGeoTiledMappingManagerEngineQGC(const QVarian
*/
/*
* These are OK as you need your own token for accessing it. Out-of-the box, QGC does not even offer these unless you enter a proper Map
B
ox token.
* These are OK as you need your own token for accessing it. Out-of-the box, QGC does not even offer these unless you enter a proper Map
b
ox token.
*/
mapTypes
<<
QGeoMapType
(
QGeoMapType
::
StreetMap
,
"Map
Box Street Map"
,
"MapBox Street Map"
,
false
,
false
,
UrlFactory
::
MapB
oxStreets
);
mapTypes
<<
QGeoMapType
(
QGeoMapType
::
SatelliteMapDay
,
"Map
Box Satellite Map"
,
"MapBox Satellite Map"
,
false
,
false
,
UrlFactory
::
MapB
oxSatellite
);
mapTypes
<<
QGeoMapType
(
QGeoMapType
::
CustomMap
,
"Map
Box High Contrast Map"
,
"MapBox High Contrast Map"
,
false
,
false
,
UrlFactory
::
MapB
oxHighContrast
);
mapTypes
<<
QGeoMapType
(
QGeoMapType
::
CustomMap
,
"Map
Box Light Map"
,
"MapBox Light Map"
,
false
,
false
,
UrlFactory
::
MapB
oxLight
);
mapTypes
<<
QGeoMapType
(
QGeoMapType
::
CustomMap
,
"Map
Box Dark Map"
,
"MapBox Dark Map"
,
false
,
false
,
UrlFactory
::
MapB
oxDark
);
mapTypes
<<
QGeoMapType
(
QGeoMapType
::
HybridMap
,
"Map
Box Hybrid Map"
,
"MapBox Hybrid Map"
,
false
,
false
,
UrlFactory
::
MapB
oxHybrid
);
mapTypes
<<
QGeoMapType
(
QGeoMapType
::
CustomMap
,
"Map
Box Wheat Paste Map"
,
"MapBox Wheat Paste Map"
,
false
,
false
,
UrlFactory
::
MapB
oxWheatPaste
);
mapTypes
<<
QGeoMapType
(
QGeoMapType
::
StreetMap
,
"Map
Box Streets Basic Map"
,
"MapBox Streets Basic Map"
,
false
,
false
,
UrlFactory
::
MapB
oxStreetsBasic
);
mapTypes
<<
QGeoMapType
(
QGeoMapType
::
CustomMap
,
"Map
Box Comic Map"
,
"MapBox Comic Map"
,
false
,
false
,
UrlFactory
::
MapB
oxComic
);
mapTypes
<<
QGeoMapType
(
QGeoMapType
::
CustomMap
,
"Map
Box Outdoors Map"
,
"MapBox Outdoors Map"
,
false
,
false
,
UrlFactory
::
MapB
oxOutdoors
);
mapTypes
<<
QGeoMapType
(
QGeoMapType
::
CycleMap
,
"Map
Box Run, Byke and Hike Map"
,
"MapBox Run, Byke and Hike Map"
,
false
,
false
,
UrlFactory
::
MapB
oxRunBikeHike
);
mapTypes
<<
QGeoMapType
(
QGeoMapType
::
CustomMap
,
"Map
Box Pencil Map"
,
"MapBox Pencil Map"
,
false
,
false
,
UrlFactory
::
MapB
oxPencil
);
mapTypes
<<
QGeoMapType
(
QGeoMapType
::
CustomMap
,
"Map
Box Pirates Map"
,
"MapBox Pirates Map"
,
false
,
false
,
UrlFactory
::
MapB
oxPirates
);
mapTypes
<<
QGeoMapType
(
QGeoMapType
::
CustomMap
,
"Map
Box Emerald Map"
,
"MapBox Emerald Map"
,
false
,
false
,
UrlFactory
::
MapB
oxEmerald
);
mapTypes
<<
QGeoMapType
(
QGeoMapType
::
StreetMap
,
"Map
box Street Map"
,
"Mapbox Street Map"
,
false
,
false
,
UrlFactory
::
Mapb
oxStreets
);
mapTypes
<<
QGeoMapType
(
QGeoMapType
::
SatelliteMapDay
,
"Map
box Satellite Map"
,
"Mapbox Satellite Map"
,
false
,
false
,
UrlFactory
::
Mapb
oxSatellite
);
mapTypes
<<
QGeoMapType
(
QGeoMapType
::
CustomMap
,
"Map
box High Contrast Map"
,
"Mapbox High Contrast Map"
,
false
,
false
,
UrlFactory
::
Mapb
oxHighContrast
);
mapTypes
<<
QGeoMapType
(
QGeoMapType
::
CustomMap
,
"Map
box Light Map"
,
"Mapbox Light Map"
,
false
,
false
,
UrlFactory
::
Mapb
oxLight
);
mapTypes
<<
QGeoMapType
(
QGeoMapType
::
CustomMap
,
"Map
box Dark Map"
,
"Mapbox Dark Map"
,
false
,
false
,
UrlFactory
::
Mapb
oxDark
);
mapTypes
<<
QGeoMapType
(
QGeoMapType
::
HybridMap
,
"Map
box Hybrid Map"
,
"Mapbox Hybrid Map"
,
false
,
false
,
UrlFactory
::
Mapb
oxHybrid
);
mapTypes
<<
QGeoMapType
(
QGeoMapType
::
CustomMap
,
"Map
box Wheat Paste Map"
,
"Mapbox Wheat Paste Map"
,
false
,
false
,
UrlFactory
::
Mapb
oxWheatPaste
);
mapTypes
<<
QGeoMapType
(
QGeoMapType
::
StreetMap
,
"Map
box Streets Basic Map"
,
"Mapbox Streets Basic Map"
,
false
,
false
,
UrlFactory
::
Mapb
oxStreetsBasic
);
mapTypes
<<
QGeoMapType
(
QGeoMapType
::
CustomMap
,
"Map
box Comic Map"
,
"Mapbox Comic Map"
,
false
,
false
,
UrlFactory
::
Mapb
oxComic
);
mapTypes
<<
QGeoMapType
(
QGeoMapType
::
CustomMap
,
"Map
box Outdoors Map"
,
"Mapbox Outdoors Map"
,
false
,
false
,
UrlFactory
::
Mapb
oxOutdoors
);
mapTypes
<<
QGeoMapType
(
QGeoMapType
::
CycleMap
,
"Map
box Run, Byke and Hike Map"
,
"Mapbox Run, Byke and Hike Map"
,
false
,
false
,
UrlFactory
::
Mapb
oxRunBikeHike
);
mapTypes
<<
QGeoMapType
(
QGeoMapType
::
CustomMap
,
"Map
box Pencil Map"
,
"Mapbox Pencil Map"
,
false
,
false
,
UrlFactory
::
Mapb
oxPencil
);
mapTypes
<<
QGeoMapType
(
QGeoMapType
::
CustomMap
,
"Map
box Pirates Map"
,
"Mapbox Pirates Map"
,
false
,
false
,
UrlFactory
::
Mapb
oxPirates
);
mapTypes
<<
QGeoMapType
(
QGeoMapType
::
CustomMap
,
"Map
box Emerald Map"
,
"Mapbox Emerald Map"
,
false
,
false
,
UrlFactory
::
Mapb
oxEmerald
);
setSupportedMapTypes
(
mapTypes
);
...
...
src/QtLocationPlugin/QMLControl/OfflineMap.qml
View file @
b5e7b4d9
...
...
@@ -277,7 +277,7 @@ QGCView {
}
Item
{
width
:
1
;
height
:
1
;
visible
:
_mapboxFact
?
_mapboxFact
.
visible
:
false
}
QGCLabel
{
text
:
qsTr
(
"
Map
B
ox Access Token
"
);
visible
:
_mapboxFact
?
_mapboxFact
.
visible
:
false
}
QGCLabel
{
text
:
qsTr
(
"
Map
b
ox Access Token
"
);
visible
:
_mapboxFact
?
_mapboxFact
.
visible
:
false
}
FactTextField
{
fact
:
_mapboxFact
visible
:
_mapboxFact
?
_mapboxFact
.
visible
:
false
...
...
@@ -285,7 +285,7 @@ QGCView {
width
:
ScreenTools
.
defaultFontPixelWidth
*
30
}
QGCLabel
{
text
:
qsTr
(
"
With an access token, you can use MapBox Maps
.
"
)
text
:
qsTr
(
"
To enable Mapbox maps, enter your access token
.
"
)
visible
:
_mapboxFact
?
_mapboxFact
.
visible
:
false
font.pointSize
:
_adjustableFontPointSize
}
...
...
@@ -299,7 +299,7 @@ QGCView {
width
:
ScreenTools
.
defaultFontPixelWidth
*
30
}
QGCLabel
{
text
:
qsTr
(
"
With an access token, you can use Esri Maps
.
"
)
text
:
qsTr
(
"
To enable Esri maps, enter your access token
.
"
)
visible
:
_esriFact
?
_esriFact
.
visible
:
false
font.pointSize
:
_adjustableFontPointSize
}
...
...
src/Settings/App.SettingsGroup.json
View file @
b5e7b4d9
...
...
@@ -124,9 +124,9 @@
"defaultValue"
:
""
},
{
"name"
:
"Map
B
oxToken"
,
"shortDescription"
:
"Access token to Map
B
ox maps"
,
"longDescription"
:
"Your personal access token for Map
B
ox maps"
,
"name"
:
"Map
b
oxToken"
,
"shortDescription"
:
"Access token to Map
b
ox maps"
,
"longDescription"
:
"Your personal access token for Map
b
ox maps"
,
"type"
:
"string"
,
"defaultValue"
:
""
},
...
...
src/Settings/AppSettings.cc
View file @
b5e7b4d9
...
...
@@ -31,7 +31,7 @@ const char* AppSettings::indoorPaletteName = "StyleIs
const
char
*
AppSettings
::
showLargeCompassName
=
"ShowLargeCompass"
;
const
char
*
AppSettings
::
savePathName
=
"SavePath"
;
const
char
*
AppSettings
::
autoLoadMissionsName
=
"AutoLoadMissions"
;
const
char
*
AppSettings
::
mapboxTokenName
=
"Map
B
oxToken"
;
const
char
*
AppSettings
::
mapboxTokenName
=
"Map
b
oxToken"
;
const
char
*
AppSettings
::
esriTokenName
=
"EsriToken"
;
const
char
*
AppSettings
::
parameterFileExtension
=
"params"
;
...
...
src/Settings/FlightMap.SettingsGroup.json
View file @
b5e7b4d9
...
...
@@ -3,7 +3,7 @@
"name"
:
"MapProvider"
,
"shortDescription"
:
"Currently selected map provider for flight maps"
,
"type"
:
"uint32"
,
"enumStrings"
:
"Bing,Google,Statkart,Map
B
ox,Esri"
,
"enumStrings"
:
"Bing,Google,Statkart,Map
b
ox,Esri"
,
"enumValues"
:
"0,1,2,3,4"
,
"defaultValue"
:
0
},
...
...
src/Settings/FlightMapSettings.cc
View file @
b5e7b4d9
...
...
@@ -38,7 +38,7 @@ FlightMapSettings::FlightMapSettings(QObject* parent)
_excludeProvider
(
mapProviderGoogle
);
#endif
if
(
qgcApp
()
->
toolbox
()
->
settingsManager
()
->
appSettings
()
->
mapboxToken
()
->
rawValue
().
toString
().
isEmpty
())
{
_excludeProvider
(
mapProviderMap
B
ox
);
_excludeProvider
(
mapProviderMap
b
ox
);
}
if
(
qgcApp
()
->
toolbox
()
->
settingsManager
()
->
appSettings
()
->
esriToken
()
->
rawValue
().
toString
().
isEmpty
())
{
_excludeProvider
(
mapProviderEsri
);
...
...
src/Settings/FlightMapSettings.h
View file @
b5e7b4d9
...
...
@@ -24,7 +24,7 @@ public:
mapProviderBing
,
mapProviderGoogle
,
mapProviderStarkart
,
mapProviderMap
B
ox
,
mapProviderMap
b
ox
,
mapProviderEsri
}
MapProvider_t
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment