public void draw() {
background(240);
map.draw();
if (boundingBox != null) {
ScreenPosition nwPos = map.getScreenPosition(boundingBox[0]);
ScreenPosition sePos = map.getScreenPosition(boundingBox[1]);
stroke(0, 255, 0, 200);
noFill();
rect(nwPos.x, nwPos.y, sePos.x - nwPos.x, sePos.y - nwPos.y);
}
noStroke();
if (center != null) {
ScreenPosition posC = map.getScreenPosition(center);
fill(0, 0, 255);
ellipse(posC.x, posC.y, 6, 6);
}
if (centerEuclidean != null) {
ScreenPosition posCE = map.getScreenPosition(centerEuclidean);
fill(0, 255, 255);
ellipse(posCE.x, posCE.y, 6, 6);
}
if (centerBoundingBox != null) {
ScreenPosition posBB = map.getScreenPosition(centerBoundingBox);
fill(0, 255, 0);
ellipse(posBB.x, posBB.y, 6, 6);
}
}