Commit d3ffc239 authored by Clemens Krug's avatar Clemens Krug
Browse files

Got the plot building to work

parent aaf9a8b6
......@@ -38,8 +38,12 @@ import java.net.URL;
import javax.swing.JComponent;
import javax.swing.JMenu;
import de.tud.kom.p2psim.api.topology.Topology;
import de.tud.kom.p2psim.impl.topology.PositionVector;
import de.tud.kom.p2psim.impl.topology.movement.modularosm.GPSCalculation;
import de.tud.kom.p2psim.impl.topology.views.VisualizationTopologyView.VisualizationInjector;
import de.tudarmstadt.maki.simonstrator.api.Binder;
import de.tudarmstadt.maki.simonstrator.api.component.ComponentNotAvailableException;
public class ShowMapQuestMapViz extends JComponent
implements IMapVisualization {
......@@ -67,9 +71,9 @@ public class ShowMapQuestMapViz extends JComponent
private void initializeImage() {
if (!initialized) {
tempImageFilePath = tempImageFilePath + "mapquest"
+ GPSCalculation.getLatCenter()
+ GPSCalculation.getLonCenter() + GPSCalculation.getZoom()
+ VisualizationInjector.getWorldX()
+ GPSCalculation.getLatCenter() + "_"
+ GPSCalculation.getLonCenter() + "_" + GPSCalculation.getZoom() + "_"
+ VisualizationInjector.getWorldX() + "_"
+ VisualizationInjector.getWorldY() + mapType + ".jpg";
// Check if the file with same properties (same location) already
......
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