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
d3ffc239
Commit
d3ffc239
authored
Jun 26, 2017
by
Clemens Krug
Browse files
Got the plot building to work
parent
aaf9a8b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/movement/modularosm/mapvisualization/ShowMapQuestMapViz.java
View file @
d3ffc239
...
...
@@ -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
...
...
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