Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marker does not display in processing #142

Closed
5wimming opened this issue Dec 20, 2016 · 1 comment
Closed

Marker does not display in processing #142

5wimming opened this issue Dec 20, 2016 · 1 comment

Comments

@5wimming
Copy link

5wimming commented Dec 20, 2016

there is my question:

import de.fhpotsdam.unfolding.*;
import de.fhpotsdam.unfolding.geo.*;
import de.fhpotsdam.unfolding.utils.*;
import de.fhpotsdam.unfolding.providers.*;
import de.fhpotsdam.unfolding.marker.*;
UnfoldingMap map;
void setup(){
  size(800,800);
  map=new UnfoldingMap(this);
  map.setZoomRange(2,15);
  MapUtils.createDefaultEventDispatcher(this,map);
  
  Location berlinLocation = new Location(52.5, 13.4);
  Location dublinLocation = new Location(53.35, -6.26);     
  // Create point markers for locations
  SimplePointMarker berlinMarker = new SimplePointMarker(berlinLocation);
  SimplePointMarker dublinMarker = new SimplePointMarker(dublinLocation);
  berlinMarker.setStrokeWeight(50);   
  // Add markers to the map
  map.addMarkers(berlinMarker, dublinMarker);//after running,it does not display,why?
 
}
void draw(){
  background(10);
  map.draw();//after running,it can display

  Location location=map.getLocation(mouseX,mouseY);
  fill(0);
  textSize(100);
  text(location.getLat()+","+location.getLon(),mouseX,mouseY);//after running,it does not display,why?
  text("it does not display",mouseX,mouseY);//after running,it does not display,why?
  noStroke();
  fill(200, 200, 0, 100);
  ellipse(200, 200, 40, 40);//after running,it does not display,why?
}

I use processing3.2.3. why are them not displaying?
sorry,my English is very poor,wish you can understand my question,
thanks.

@tillnagel
Copy link
Owner

Currently, Unfolding for P3 beta does not work properly with the default renderer. Simply change your

size(800,800);

to

size(800,800, P2D);

Closing this as duplicate of #118.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants