Package com.modestmaps.geo

Examples of com.modestmaps.geo.Location


        switch (ae.getID()) {
        case TapEvent.BUTTON_CLICKED:
          Point[] p = getScreenPoints();
          for (int i = 0; i < p.length; i++) {
            Point point = p[i];
            Location loc = map.pointLocation(point.x ,point.y);
            getPictures(loc, getAccuracyForZoom(map), true);
          }
          getPictures(map.getCenter(), getAccuracyForZoom(map), false);
        }
      }
View Full Code Here


                  GeoData geo = foto.getGeoData();
                  float lat = geo.getLatitude();
                  float lon = geo.getLongitude();
                  System.out.println("\"" + fotoName + "\"" + " Has GeoData! -> Lat:" + lat + " Lon:" + lon + " PlaceID: " + foto.getPlaceId());

                  Point2f pointOnScreen   = map.locationPoint(new Location(lat, lon));
//                  System.out.println(" -> Point on Screen: " + pointOnScreen);

                  Vector3D vecOnScreen   = new Vector3D(0,0,0f);
//                  Vector3D vecOnScreen   = new Vector3D(pointOnScreen.x , pointOnScreen.y , 0.01f);
//                  Vector3D vecOnScreen   = new Vector3D(pointOnScreen.x -p.width/2 +128, pointOnScreen.y -p.height/2 +128, 0.01f);
View Full Code Here

//      break;
    case KeyEvent.VK_BACK_SPACE:
      p.popScene();
      break;
    case KeyEvent.VK_F1:
      Location stuttgartLoc = new Location( 48.7771056f,   9.1807688f);
      map.setCenterZoom(stuttgartLoc, 15);
      System.out.println("Center set to location: " + stuttgartLoc);
        break;
    case KeyEvent.VK_F2:
      Location c = map.getCenter();
      this.getPictures(c, this.getAccuracyForZoom(map), true);
      break;
    case KeyEvent.VK_F3:
      Point[] p = this.getScreenPoints();
      for (int i = 0; i < p.length; i++) {
        Point point = p[i];
        Location loc = map.pointLocation(point.x ,point.y);
        this.getPictures(loc, this.getAccuracyForZoom(map), true);
      }
      this.getPictures(map.getCenter(), this.getAccuracyForZoom(map), false);
      break;
    case KeyEvent.VK_F9:
      Location lisbon = new Location(38.693f, -9.198f);
      map.setCenterZoom(lisbon, 15);
      System.out.println("Center set to location: " + lisbon);
      this.updateTagContainerScale();
      break;
    case KeyEvent.VK_T:
View Full Code Here

TOP

Related Classes of com.modestmaps.geo.Location

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.