Package org.zkoss.openlayers.layer

Examples of org.zkoss.openlayers.layer.Google


  @Wire
  private Openlayers map;

  public void doAfterCompose(Window comp) throws Exception {
    super.doAfterCompose(comp);
    map.addLayer(new Google("Google Streets",  toMap(pair("type", Google.Type.NORMAL))));
    map.addLayer(new Google("Google Satellite", toMap(pair("numZoomLevels", 20))));
    map.addLayer(new Google("Google Hybrid", toMap(pair("type", Google.Type.HYBRID), pair("numZoomLevels", 20))));
    map.addLayer(new Google("Google Physical", toMap(pair("type", Google.Type.SATELLITE), pair("numZoomLevels", 22))));
    map.addControl(new LayerSwitcher());
    map.setCenter(new LonLat(10.2, 48.9), 5, false, false);
  }
View Full Code Here


        pair("units", "m"),
        pair("maxResolution", 156543.0339),
        pair("maxExtent", new Bounds(-20037508, -20037508, 20037508,
            20037508))));

    map.addLayer(new Google("Google Layer", toMap(pair(
        "sphericalMercator", true))));

    // prepare to style the data
    StyleMap styleMap = new StyleMap(toMap(pair("strokeColor", "black"),
        pair("strokeWidth", 2), pair("strokeOpacity", 0.5),
View Full Code Here

TOP

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

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.