Package org.zkoss.openlayers.layer

Examples of org.zkoss.openlayers.layer.OSM


  @Wire
  private Openlayers map;

  public void doAfterCompose(Window comp) throws Exception {
    super.doAfterCompose(comp);
    map.addLayer(new OSM("Simple OSM Map"));
    map.setCenter(new LonLat(-71.147, 42.472).transform(
                new Projection("EPSG:4326"),
                map.getProjection()), 12, false, false);

  }
View Full Code Here


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

    map.addLayer(new OSM());
    String[] matrixIds = new String[26];
    for (int i = 0; i < 26; ++i) {
      matrixIds[i] = "EPSG:900913:" + i;
    }
    map.addLayer(new WMTS(
View Full Code Here

TOP

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

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.