Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
c4095430
Commit
c4095430
authored
Mar 16, 2018
by
Andreas Bircher
Browse files
fix airmap api
parent
33082ffc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/QtLocationPlugin/QGCMapUrlEngine.cpp
View file @
c4095430
...
...
@@ -415,10 +415,10 @@ UrlFactory::_getURL(MapType type, int x, int y, int zoom, QNetworkAccessManager*
break
;
case
AirmapElevation
:
{
return
QString
(
"https://api.airmap.com/elevation/
stage/srtm
1/ele/carpet?points=%1,%2,%3,%4"
).
arg
(
static_cast
<
double
>
(
y
)
*
QGCMapEngine
::
srtm1TileSize
-
90.0
).
arg
(
static_cast
<
double
>
(
x
)
*
QGCMapEngine
::
srtm1TileSize
-
180.0
).
arg
(
static_cast
<
double
>
(
y
+
1
)
*
QGCMapEngine
::
srtm1TileSize
-
90.0
).
arg
(
static_cast
<
double
>
(
x
+
1
)
*
QGCMapEngine
::
srtm1TileSize
-
180.0
);
return
QString
(
"https://api.airmap.com/elevation/
v
1/ele/carpet?points=%1,%2,%3,%4"
).
arg
(
static_cast
<
double
>
(
y
)
*
QGCMapEngine
::
srtm1TileSize
-
90.0
).
arg
(
static_cast
<
double
>
(
x
)
*
QGCMapEngine
::
srtm1TileSize
-
180.0
).
arg
(
static_cast
<
double
>
(
y
+
1
)
*
QGCMapEngine
::
srtm1TileSize
-
90.0
).
arg
(
static_cast
<
double
>
(
x
+
1
)
*
QGCMapEngine
::
srtm1TileSize
-
180.0
);
}
break
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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