Why doesn't show markers in processing using unfoldingmaps?


its the first time i’m writing a Processing sketch and i want to make an interactive map to show a position ( GPS coordinates) . I want to display a marker to show destination in the map. I use Windows 10 and Processing 3. And I use the Unfolding Map v0.9.9beta library
. But the marker doesn’t show. Additionally, I draw a text for knowing the gps coordinates in the map. But It doesn’t show.

Why I can’t display anything on top of the map ?

Thank you for your answer!

// Map libraries
import de.fhpotsdam.unfolding.*;
import de.fhpotsdam.unfolding.data.*;
import de.fhpotsdam.unfolding.geo.*;
import de.fhpotsdam.unfolding.utils.*;  
import de.fhpotsdam.unfolding.marker.*;
import de.fhpotsdam.unfolding.providers.*;
import java.util.*;

UnfoldingMap map;
Location bob_location = new Location(48.9028720f,2.439979f);

void setup() {
  size(800, 600); 
  map = new UnfoldingMap(this, new OpenStreetMap.OpenStreetMapProvider());
  MapUtils.createDefaultEventDispatcher(this, map);
 // Create point markers for locations
 SimplePointMarker bob_marker = new SimplePointMarker(bob_location);
 // Adapt style
bob_marker.setColor(color(255, 0, 0, 100));
bob_marker.setStrokeColor(color(255, 0, 0));
// Add markers to the map

void draw() { 
Location location = map.getLocation(mouseX, mouseY);
text(location.getLat() + ", " + location.getLon(), mouseX, mouseY);


Try this: size(800, 600, P3D); and see if it works.



it works perfectly thank you