Examples of GoogleV3


Examples of org.gwtopenmaps.openlayers.client.layer.GoogleV3

        map.addLayer(OSM.Mapnik("OpenStreetMap"));

        GoogleV3Options gHybridOptions = new GoogleV3Options();
        gHybridOptions.setNumZoomLevels(20);
        gHybridOptions.setType(GoogleV3MapType.G_HYBRID_MAP);
        map.addLayer(new GoogleV3("Google Hybrid", gHybridOptions));

        GoogleV3Options gNormalOptions = new GoogleV3Options();
        gNormalOptions.setNumZoomLevels(22);
        gNormalOptions.setType(GoogleV3MapType.G_NORMAL_MAP);
        map.addLayer(new GoogleV3("Google Normal", gNormalOptions));

        GoogleV3Options gSatelliteOptions = new GoogleV3Options();
        gSatelliteOptions.setNumZoomLevels(20);
        gSatelliteOptions.setType(GoogleV3MapType.G_SATELLITE_MAP);
        map.addLayer(new GoogleV3("Google Satellite", gSatelliteOptions));

        GoogleV3Options gTerrainOptions = new GoogleV3Options();
        gTerrainOptions.setNumZoomLevels(16);
        gTerrainOptions.setType(GoogleV3MapType.G_TERRAIN_MAP);
        map.addLayer(new GoogleV3("Google Terrain", gTerrainOptions));

        final String bingKey = "AseEs0DLJhLlTNoxbNXu7DGsnnH4UoWuGue7-irwKkE3fffaClwc9q_Mr6AyHY8F";
        map.addLayer(new Bing(new BingOptions("Bing Road", bingKey, BingType.ROAD)));
        map.addLayer(new Bing(new BingOptions("Bing Hybrid", bingKey, BingType.HYBRID)));
        map.addLayer(new Bing(new BingOptions("Bing Aerial", bingKey, BingType.AERIAL)));
View Full Code Here

Examples of org.zkoss.openlayers.layer.GoogleV3

 
 
  @Listen("onClick=#btn")
  public void addLayer(Event evt) {
    System.out.println("onClick ");
    myComp.addLayer(new GoogleV3(name.getValue(), toMap(pair("type", getLayerType()), pair("numZoomLevels", 20))));
  }
View Full Code Here

Examples of org.zkoss.openlayers.layer.GoogleV3

  @Wire
  private Openlayers map;

  public void doAfterCompose(Window comp) throws Exception {
    super.doAfterCompose(comp);
    map.addLayer(new GoogleV3("Google Streets",  toMap(pair("type", GoogleV3.Type.ROADMAP))));
    map.addLayer(new GoogleV3("Google Satellite", toMap(pair("numZoomLevels", 20))));
    map.addLayer(new GoogleV3("Google Hybrid", toMap(pair("type", GoogleV3.Type.HYBRID), pair("numZoomLevels", 20))));
    map.addLayer(new GoogleV3("Google Physical", toMap(pair("type", GoogleV3.Type.SATELLITE), pair("numZoomLevels", 22))));
    map.addControl(new LayerSwitcher());
    map.setCenter(new LonLat(10.2, 48.9).transform(new Projection("EPSG:4326"),
        map.getProjection()), 5, false, false);
  }
View Full Code Here
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.