Commit 9e3b2ede authored by Julian Zobel's avatar Julian Zobel
Browse files

MapQuest Fix: Visualization was not downloaded due to change in the API.

parent 5c26bc18
......@@ -35,7 +35,7 @@ public interface IMapVisualization extends VisualizationComponent {
}
/**
* Retreives the current map as image.
* Retrieves the current map as image.
* @return image of the current map
*/
default BufferedImage getMapImage()
......
......@@ -77,7 +77,7 @@ public class ShowMapQuestMapViz extends JComponent
+ GPSCalculation.getLatCenter() + "_"
+ GPSCalculation.getLonCenter() + "_" + GPSCalculation.getZoom() + "_"
+ worldDimensions.getX() + "_"
+ worldDimensions.getY() + mapType + ".jpg";
+ worldDimensions.getY() + mapType + ".png";
// 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/v4/getmap?key="
String imageUrl = "https://www.mapquestapi.com/staticmap/v5/map?key="
+ mapQuestKey + "&type=" + mapType
+ "&imagetype=jpeg&center="
+ "&imagetype=png&center="
+ GPSCalculation.getLatCenter() + ","
+ GPSCalculation.getLonCenter() + "&zoom="
+ ((GPSCalculation.getZoom())) + "&size="
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment