Package org.zkoss.openlayers.layer

Examples of org.zkoss.openlayers.layer.Vector


        new Double[] { -122.6, 37.6, -122.3, 37.9 },
        new Double[] { 10.0, 10.0, 20.0, 20.0 } };
    Layer ol_wms = new WMS("OpenLayers WMS",
        "http://vmap0.tiles.osgeo.org/wms/vmap0", toMap(pair("layers",
            "basic")));
    Vector boxes = new Vector("Boxes");

    for (int i = 0; i < box_extents.length; i++) {
      Bounds bounds = Bounds.fromArray(new ArrayList(box_extents[i]));
      org.zkoss.openlayers.feature.Vector box = new org.zkoss.openlayers.feature.Vector(
          bounds.toGeometry());
      boxes.addFeature(box);
    }

    map.addLayers(Arrays.asList(ol_wms, boxes));
    map.addControl(new LayerSwitcher());
    Control sf = new SelectFeature(boxes);
View Full Code Here


    }
    // add unique value rules with your color lookup
    styleMap.addUniqueValueRules("default", "STATE_FIPS", fips, null);

    // create a vector layer using the canvas renderer (where available)
    map.addLayer(new Vector(
        "States",
        toMap(pair("strategies", new Object[] { new BBOX() }),
          pair("protocol",
          new WFS(toMap(pair("version", "1.1.0"),
              pair("srsName", "EPSG:900913"),
View Full Code Here

        "http://maps.opengeo.org/geowebcache/service/wms", toMap(pair(
            "layers", "bluemarble")), toMap(pair("opacity", 0.4),
            pair("isBaseLayer", false), pair("wrapDateLine", true)));

    // create a vector layer for drawing
    Layer vector = new Vector("Editable Vectors");

    map.addLayers(Arrays.asList(ve, merc, vector));
    map.addControl(new LayerSwitcher());
    map.addControl(new EditingToolbar(vector));
    map.zoomToMaxExtent();
View Full Code Here

TOP

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

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.