void setup() {
size(800, 600, P2D);
map = new UnfoldingMap(this);
berlinLocation = new Location(52.5, 13.4);
berlinMarker = new SimplePointMarker(berlinLocation);
map.addMarkers(berlinMarker);
MapUtils.createDefaultEventDispatcher(this,map);
}
void draw() {
println(berlinMarker.getScreenPosition(map));
//image(im,429,168,30,30);
map.draw();
}
Error:-
Unfolding Map v0.9.6
java.lang.RuntimeException: java.lang.NoSuchFieldError: quality
at processing.opengl.PSurfaceJOGL$2.run(PSurfaceJOGL.java:412)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoSuchFieldError: quality
at de.fhpotsdam.unfolding.mapdisplay.OpenGLMapDisplay.(Unknown Source)
at de.fhpotsdam.unfolding.mapdisplay.MapDisplayFactory.getMapDisplay(Unknown Source)
at de.fhpotsdam.unfolding.UnfoldingMap.(Unknown Source)
at de.fhpotsdam.unfolding.UnfoldingMap.(Unknown Source)
at dymap.setup(dymap.java:54)
at processing.core.PApplet.handleDraw(PApplet.java:2425)
at processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:866)
at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692)
at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:674)
at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:443)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1293)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
RuntimeException: java.lang.NoSuchFieldError: quality
code:-
import de.fhpotsdam.unfolding.marker.; import de.fhpotsdam.unfolding.providers.; import de.fhpotsdam.unfolding.texture.; import de.fhpotsdam.unfolding.tiles.; import de.fhpotsdam.unfolding.ui.; import de.fhpotsdam.unfolding.utils.; import de.fhpotsdam.utils.*; UnfoldingMap map; Location berlinLocation; SimplePointMarker berlinMarker;
void setup() { size(800, 600, P2D); map = new UnfoldingMap(this); berlinLocation = new Location(52.5, 13.4); berlinMarker = new SimplePointMarker(berlinLocation); map.addMarkers(berlinMarker); MapUtils.createDefaultEventDispatcher(this,map); } void draw() { println(berlinMarker.getScreenPosition(map)); //image(im,429,168,30,30); map.draw(); }
Error:-
Unfolding Map v0.9.6 java.lang.RuntimeException: java.lang.NoSuchFieldError: quality at processing.opengl.PSurfaceJOGL$2.run(PSurfaceJOGL.java:412) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.NoSuchFieldError: quality at de.fhpotsdam.unfolding.mapdisplay.OpenGLMapDisplay.(Unknown Source)
at de.fhpotsdam.unfolding.mapdisplay.MapDisplayFactory.getMapDisplay(Unknown Source)
at de.fhpotsdam.unfolding.UnfoldingMap.(Unknown Source)
at de.fhpotsdam.unfolding.UnfoldingMap.(Unknown Source)
at dymap.setup(dymap.java:54)
at processing.core.PApplet.handleDraw(PApplet.java:2425)
at processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:866)
at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692)
at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:674)
at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:443)
at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1293)
at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)
at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759)
at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)
at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452)
at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
RuntimeException: java.lang.NoSuchFieldError: quality