I’m unable to use this function in the processing for android mode, because it’s first argument requires PApplet
StaticMap m = new StaticMap(this, new com.modestmaps.providers.Microsoft.RoadProvider(), new Point2f(width/2, height), new com.modestmaps.geo.Location((float)currentLatitude, (float)currentLongitude), 16);
If I pass in
this it’s just going to crash with the following error message:
FATAL EXCEPTION: Animation Thread Process: processing.test.maps_go, PID: 4386 java.lang.RuntimeException: Missing renderer class at processing.core.PApplet.makeGraphics(Unknown Source) at processing.core.PApplet.createGraphics(Unknown Source) at com.modestmaps.StaticMap.render_tiles(StaticMap.java:225) at com.modestmaps.StaticMap.draw(StaticMap.java:199) at processing.test.maps_go.Maps_Go.draw(Maps_Go.java:94) at processing.core.PApplet.handleDraw(Unknown Source) at processing.core.PSurfaceNone.callDraw(Unknown Source) at processing.core.PSurfaceNone$AnimationThread.run(Unknown Source)
How can I get the render class, and which one should I get?
Thanks in advance.
EDIT: This is the link to the library’s github: https://github.com/RandomEtc/modestmaps-processing