Package org.zkoss.openlayers.layer

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


  @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

Related Classes of org.zkoss.openlayers.layer.GoogleV3

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.