Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
PeerfactSim.KOM
Commits
9e3b2ede
Commit
9e3b2ede
authored
Dec 01, 2022
by
Julian Zobel
Browse files
MapQuest Fix: Visualization was not downloaded due to change in the API.
parent
5c26bc18
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/movement/modularosm/mapvisualization/IMapVisualization.java
View file @
9e3b2ede
...
...
@@ -35,7 +35,7 @@ public interface IMapVisualization extends VisualizationComponent {
}
/**
* Retr
e
ives the current map as image.
* Retri
e
ves the current map as image.
* @return image of the current map
*/
default
BufferedImage
getMapImage
()
...
...
src/de/tud/kom/p2psim/impl/topology/movement/modularosm/mapvisualization/ShowMapQuestMapViz.java
View file @
9e3b2ede
...
...
@@ -77,7 +77,7 @@ public class ShowMapQuestMapViz extends JComponent
+
GPSCalculation
.
getLatCenter
()
+
"_"
+
GPSCalculation
.
getLonCenter
()
+
"_"
+
GPSCalculation
.
getZoom
()
+
"_"
+
worldDimensions
.
getX
()
+
"_"
+
worldDimensions
.
getY
()
+
mapType
+
".
j
pg"
;
+
worldDimensions
.
getY
()
+
mapType
+
".p
n
g"
;
// Check if the file with same properties (same location) already
// exists
...
...
@@ -88,9 +88,9 @@ public class ShowMapQuestMapViz extends JComponent
int
pxx
=
(
int
)
(
worldDimensions
.
getX
()
/
GPSCalculation
.
getMetersPerPixel
());
int
pxy
=
(
int
)
(
worldDimensions
.
getY
()
/
GPSCalculation
.
getMetersPerPixel
());
String
imageUrl
=
"http://www.mapquestapi.com/staticmap/v
4/get
map?key="
String
imageUrl
=
"http
s
://www.mapquestapi.com/staticmap/v
5/
map?key="
+
mapQuestKey
+
"&type="
+
mapType
+
"&imagetype=
jpe
g¢er="
+
"&imagetype=
pn
g¢er="
+
GPSCalculation
.
getLatCenter
()
+
","
+
GPSCalculation
.
getLonCenter
()
+
"&zoom="
+
((
GPSCalculation
.
getZoom
()))
+
"&size="
...
...
Julian Zobel
🦄
@j.zobel
mentioned in commit
27db30c4
·
Jan 17, 2023
mentioned in commit
27db30c4
mentioned in commit 27db30c44182658f0ed7f615a3d6743fcc751981
Toggle commit list
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