Exemplo n.º 1
0
  public void setup() {
    size(600, 600);

    build();
    export();
    UMB.setPApplet(this);
  }
Exemplo n.º 2
0
  public void setup() {
    size(600, 600, OPENGL);
    smooth();

    UMB.setPApplet(this);
    nav = new UNav3D();

    // VERY IMPORTANT: Allways initialize the library before using it
    RG.init(this);

    if (geo == null) build();
  }
Exemplo n.º 3
0
  public void setup() {
    size(1000, 1000, OPENGL);
    smooth();

    UMB.setPApplet(this);
    nav = new UNav3D();

    mapNames = new ArrayList<String>();
    String[] s = new File(path).list();
    for (String ss : s)
      if (ss.endsWith(".png")) {
        ss = ss.substring(0, ss.indexOf('.'));
        if (new File(path + ss + ".dat").exists()) {
          mapNames.add(ss);
        }
      }

    img = loadImage(path + "europe.png");
    geobb =
        new UVertex[] {
          new UVertex(56.54f, -12.56f),
          new UVertex(39.88f, 32.34f),
          new UVertex(52.5f, 13.34f),
          new UVertex(51.5f, -0.1f),
          new UVertex(45.44f, 12.34f),
          new UVertex(41.01f, 28.98f)
          //        berlin = mercatorMap.getScreenLocation(new PVector(52.5, 13.34));
          //        london = mercatorMap.getScreenLocation(new PVector(51.5f, -0.1f));
          //        venice = mercatorMap.getScreenLocation(new PVector(45.44, 12.34));
          //        istanbul = mercatorMap.getScreenLocation(new PVector(41.01, 28.98));

        };

    newMap();

    //    geodata=UGeoData.parseOpenPathsCSV(path+"20140123-openpaths-mariuswatz.csv");
    geodata = UMapping.parseFoursquare(path + "20140122 foursquare_historyMW.xml");

    vl = geodata.getPointList();
    smooth();
  }