tillnagel / unfolding

A library to create interactive maps and geovisualizations in Processing and Java
http://unfoldingmaps.org
Other
477 stars 245 forks source link

OpenGL issue #185

Closed tapanrp closed 2 years ago

tapanrp commented 2 years ago

I need help to run this code.

package module3;

import de.fhpotsdam.unfolding.UnfoldingMap; import de.fhpotsdam.unfolding.providers.Google; import de.fhpotsdam.unfolding.utils.MapUtils; import processing.core.PApplet;

public class EarthquakeCityMapS extends PApplet{

    private UnfoldingMap map;
    public void setup()
    {
        size(950, 600, OPENGL);  // size of the canvas
//      size(950,600);
        map = new UnfoldingMap(this,200,50,700,500, new Google.GoogleMapProvider()); 
        map.zoomToLevel(2);
        MapUtils.createMouseEventDispatcher(this, map);

    }

    public void draw()
    {
        background(200);
        map.draw();
    }
}

If I run with size(950, 600, OPENGL), I get a blank screen (Applet started). In the cosole, I get this, Unfolding Map v0.9.7 (UCSD edition) Using OpenGLMapDisplay with processing.Opengl.PGraphics3D

If I remove OPENGL, and run just size(950, 650), it works fine.

What should I do to run this code?

tapanrp commented 2 years ago

I updated my video card. I am okay now.