XML xml; XML[] rows; //setting variables for max and min //longitudes float minlat; float maxlat; float minlon; float maxlon; float latx, lony; float w; float h; float lon; float lat; //park name //XML name; //image of map PImage img; //color of ellipse color c = color(220, 220, 220); //setup document void setup() { size(1000, 700); //load map of SF img = loadImage("sfmap-01.png"); image(img, 0, 0, 1000, 900); textAlign(LEFT); fill(255); textSize(15); text("San Francisco Parks and Open Space Map", 20,30, 200, 100); textSize(10); text("This map displays all the parks and open spaces in San Francisco, CA. The circles represent the parks size in acrage. the name of the park is shown next to each circle.", 20, 80,180,200); textSize(5); //load xml xml = loadXML("parks_testing.xml"); rows = xml.getChildren("row"); //setting minlon to equal MAX_FLOAT and vice versa, etc. minlon = MAX_FLOAT; maxlon = MIN_FLOAT; minlat = MAX_FLOAT; maxlat = MIN_FLOAT; for (int row=0; rowmaxlon) { maxlon = lon; } if (lonmaxlat) { maxlat = lat; } if (lat 200 && mouseX < 400 && mouseY > 200 && mouseY < 400) { //if the mouse is over the box... c=color(0,255,0); } else { //if not... c = color(220, 220, 220); }*/ } println(minlon); println(maxlon); } void draw() { }