Package de.fhpotsdam.unfolding.multi

Source Code of de.fhpotsdam.unfolding.multi.MultiProviderMultiMapApp

package de.fhpotsdam.unfolding.multi;

import processing.core.PApplet;

import de.fhpotsdam.unfolding.UnfoldingMap;
import de.fhpotsdam.unfolding.mapdisplay.MapDisplayFactory;
import de.fhpotsdam.unfolding.providers.Microsoft;
import de.fhpotsdam.unfolding.providers.OpenStreetMap;
import de.fhpotsdam.unfolding.utils.MapUtils;

/**
* Two independent maps, with own interactions and different providers.
*/
public class MultiProviderMultiMapApp extends PApplet {

  UnfoldingMap map1;
  UnfoldingMap map2;

  public void setup() {
    size(800, 600, OPENGL);

    map1 = new UnfoldingMap(this, "map1", 10, 10, 385, 580, true, false, new Microsoft.AerialProvider());
    map2 = new UnfoldingMap(this, "map2", 405, 10, 385, 580, true, false, new OpenStreetMap.CloudmadeProvider(
        "1a1b06b230af4efdbb989ea99e9841af", 999));
    MapUtils.createDefaultEventDispatcher(this, map1, map2);
  }

  public void draw() {
    background(0);

    map1.draw();
    map2.draw();
  }

}
TOP

Related Classes of de.fhpotsdam.unfolding.multi.MultiProviderMultiMapApp

TOP
Copyright © 2018 www.massapi.com. 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.