BImage map; BFont font; Zone[] zoneArray; float x_min, y_min, x_max, y_max; float[] xArray; //stores x gps coords (longitude) float[] yArray; //stores y GPS coords (latitude) float[] currentX; float[] currentY; int xCnt, yCnt; //individually count x and y coordinates int id; //variable path (unique) int numZones; boolean display, displayZones, paused; //to display path int j, e; //counters float usrX, usrY; String currentLocation; BImage currentPic; float picX, picY; /******************************************** * place authored points here or grab from a database *********************************************/ void setup() { size(511, 684); map = loadImage("losFeliz.jpg"); font = loadFont("VT100_Bold.vlw"); //for db stuff xArray = new float[10000]; // limit 10000 points yArray = new float[10000]; currentX = new float[10000]; // limit 10000 points currentY = new float[10000]; zoneArray = new Zone[10000]; e=0; xCnt = 0; yCnt = 0; //id = Integer.parseInt(param("path_id")); //set a path - I think we can get this from the param function in processing // id = 121 is current path id = 122; //or hard code it for non-applet viewing j=0; display = false; displayZones = false; paused = false; //define boundaries x_min = -118.296146; y_min = 34.112269; x_max = -118.285229; y_max = 34.099938; delay(1000); loadZones(); delay(2000); loadPath(); } void loop() { background(255); imageMode(CORNER); image(map, 0, 0); stroke(255, 250, 50); fill(255, 250, 50); if (displayZones) { for(int z=0; z