Package org.zkoss.openlayers.layer

Examples of org.zkoss.openlayers.layer.WMS


  private Textbox minute;

  private WMS ia_wms;
  public void doAfterCompose(Window comp) throws Exception {
    super.doAfterCompose(comp);
    map.addLayer(new WMS("OpenLayers WMS",
        "http://vmap0.tiles.osgeo.org/wms/vmap0?", toMap(pair("layers",
            "basic"))));

    map.addLayer(new WMS("NASA Global Mosaic",
        "http://t1.hypercube.telascience.org/cgi-bin/landsat7", toMap(
            pair("layers", "landsat7"), pair("visible", false))));
    ia_wms = new WMS(
        "Nexrad",
        "http://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi?",
        toMap(pair("layers", "nexrad-n0r-wmst"),
            pair("transparent", true), pair("format", "image/png"),
            pair("time", "2005-08-29T13:00:00Z")));
View Full Code Here


  private Openlayers map2;

  public void doAfterCompose(Window comp) throws Exception {
    super.doAfterCompose(comp);
    // set up some layers
    Layer ol = new WMS(
              "OpenLayers WMS",
              "http://vmap0.tiles.osgeo.org/wms/vmap0",
              toMap(pair("layers", "basic"))
          );
    Layer jpl = new WMS(
        "NASA Global Mosaic",
              "http://t1.hypercube.telascience.org/cgi-bin/landsat7",
              toMap(pair("layers", "landsat7"))
          );
               
        // A clone of the above layer that we will use as overview for map2.
        // We need to clone jpl before the it gets added to a map, so the
        // clone can have its own maxExtent and maxResolution instead of
        // getting these settings initialized from map1.
    Layer jplOverview = (Layer)jpl.clone();
       
        // A more detailled layer of Manhattan for map2
        Layer ny = new WMS(
            "Manhattan",
            "http://demo.opengeo.org/geoserver/wms",
            toMap(pair("layers", "tiger-ny"), pair("format", "image/png"))
        );
               
View Full Code Here

  private Openlayers map;

  public void doAfterCompose(Window comp) throws Exception {
    super.doAfterCompose(comp);
    map.addLayer(new Yahoo("Yahoo"));
    map.addLayer(new WMS("OpenLayers WMS",
        "http://vmap0.tiles.osgeo.org/wms/vmap0", toMap(pair("layers",
            "basic"))));
    map.addControl(new LayerSwitcher());
    map.setCenter(new LonLat(23.342453, 120.320154).transform(
        new Projection("EPSG:900913"), new Projection("EPSG:4326")), 4,
View Full Code Here

  @Wire
  private Openlayers map;

  public void doAfterCompose(Window comp) throws Exception {
    super.doAfterCompose(comp);
    map.addLayer(new WMS( "OpenLayers WMS",
             "http://vmap0.tiles.osgeo.org/wms/vmap0", toMap(pair("layers", "basic"))));
            
        map.setCenter(new LonLat(0, 0), 0);
        map.addLayer(new Text("text", toMap(pair("location", Executions.getCurrent().getContextPath() + "/data/textfile.txt"))));
View Full Code Here

  private Openlayers map;

  public void doAfterCompose(Window comp) throws Exception {
    super.doAfterCompose(comp);

    map.addLayer(new WMS( "OpenLayers WMS",
             "http://vmap0.tiles.osgeo.org/wms/vmap0", toMap(pair("layers", "basic"))));
            
        map.addLayer(new Text("text", toMap(pair("location", Executions.getCurrent().getContextPath() + "/data/textfile.txt"))));
         map.addControl(new LayerSwitcher());
View Full Code Here

  private Label msg;
  private Navigation nav;
  public void doAfterCompose(Window comp) throws Exception {
    super.doAfterCompose(comp);
    map.setOptions(toMap(pair("controls", Collections.EMPTY_LIST)));
    map.addLayer(new WMS("OpenLayers WMS",
        "http://vmap0.tiles.osgeo.org/wms/vmap0", toMap(pair("layers",
            "basic"))));
    nav = new Navigation(toMap(pair("zoomWheelEnabled", false)));
    map.addControl(nav);
    map.zoomToMaxExtent();
View Full Code Here

  @Wire
  private Openlayers map;

  public void doAfterCompose(Window comp) throws Exception {
    super.doAfterCompose(comp);
    map.addLayer(new WMS("OpenLayers WMS",
        "http://vmap0.tiles.osgeo.org/wms/vmap0", toMap(pair("layers",
            "basic"))));
    Map layer_style = Vector.getStyle("default");
    layer_style = mergeMap(layer_style, pair("fillOpacity", 0.2),
        pair("graphicOpacity", 1));
View Full Code Here

  @Wire
  private Openlayers map;

  public void doAfterCompose(Window comp) throws Exception {
    super.doAfterCompose(comp);
    map.addLayer(new WMS("OpenLayers WMS",
        "http://vmap0.tiles.osgeo.org/wms/vmap0", toMap(pair("layers",
            "basic"))));

    Map layer_style = Vector.getStyle("default");
View Full Code Here

    Double[][] box_extents = new Double[][] {
        new Double[] { -10.0, 50.0, 5.0, 60.0 },
        new Double[] { -75.0, 41.0, -71.0, 44.0 },
        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++) {
View Full Code Here

  @Wire
  private Openlayers map;

  public void doAfterCompose(Window comp) throws Exception {
    super.doAfterCompose(comp);
    map.addLayer(new WMS("OpenLayers WMS",
        "http://vmap0.tiles.osgeo.org/wms/vmap0", toMap(pair("layers",
            "basic"))));
    map.addControl(new LayerSwitcher());
    map.setCenter(new LonLat(5, 40), 5, false, false);
View Full Code Here

TOP

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

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.