Package org.zkoss.openlayers.control

Examples of org.zkoss.openlayers.control.LayerSwitcher


    map.addLayer(new VirtualEarth("Hybrid", toMap(pair("type",
        VirtualEarth.Type.HYBRID))));
    map.addLayer(new VirtualEarth("Aerial", toMap(pair("type",
        VirtualEarth.Type.AERIAL))));

    map.addControl(new LayerSwitcher());
    map.setCenter(new LonLat(-110, 45), 3, false, false);

  }
View Full Code Here


        "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")));
    map.addLayer(ia_wms);
    map.addControl(new LayerSwitcher());
    map.zoomToExtent(new Bounds(-100.898437,22.148438,-78.398437,39.726563), false);
  }
View Full Code Here

        pair("type", "Aerial"))));
    map.addLayer(new Bing(toMap(pair("key", apiKey),
        pair("type", "AerialWithLabels"),
        pair("name", "Bing Aerial With Labels"))));

    map.addControl(new LayerSwitcher());
    map.setCenter(new LonLat(-71.147, 42.472).transform(new Projection(
        "EPSG:4326"), map.getProjection()), 11);

  }
View Full Code Here

            "http://demo.opengeo.org/geoserver/wms",
            toMap(pair("layers", "tiger-ny"), pair("format", "image/png"))
        );
               
        map1.addLayers(Arrays.asList(ol, jpl));
        map1.addControl(new LayerSwitcher());
       
        // create an overview map control with the default options
        Control overview1 = new OverviewMap(toMap(pair("maximized", true)));
        map1.addControl(overview1);
       
View Full Code Here

    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

   
//    myComp.addLayer(new GoogleV3("acb",  toMap(pair("type", GoogleV3.Type.TERRAIN))));
//    myComp.addLayer(new GoogleV3(toMap(pair("numZoomLevels", 20))));
//    myComp.addLayer(new GoogleV3(toMap(pair("type", GoogleV3.Type.HYBRID), pair("numZoomLevels", 20))));
//    myComp.addLayer(new GoogleV3(toMap(pair("type", GoogleV3.Type.SATELLITE), pair("numZoomLevels", 22))));
    myComp.addControl(new LayerSwitcher());
   

    ListModelList model = new ListModelList();
    model.add(new Object[]{"Google Streets", GoogleV3.Type.ROADMAP});
    model.add(new Object[]{"Google Satellite", GoogleV3.Type.SATELLITE});
View Full Code Here

            pair("layer", "medford:buildings"),
            pair("matrixSet", "EPSG:900913"),
            pair("matrixIds", matrixIds),
            pair("format", "image/png"), pair("style", "_null"),
            pair("opacity", 0.7), pair("isBaseLayer", false))));
    map.addControl(new LayerSwitcher());
    map.setCenter(new LonLat(-13677832, 5213272), 13, false, false);

  }
View Full Code Here

    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,
        false, false);

  }
View Full Code Here

         Marker marker = new Marker(new LonLat(90,10), (Icon)icon.clone());
         marker.setOpacity(0.2);
//         marker.events.register('mousedown', marker, function(evt) { alert(this.icon.url); OpenLayers.Event.stop(evt); });
         markers.addMarker(marker);
         map.addControl(new LayerSwitcher());
         map.zoomToMaxExtent();

         halfIcon.setOpacity(0.5);
  }
View Full Code Here

    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());
         map.zoomToMaxExtent();
  }
View Full Code Here

TOP

Related Classes of org.zkoss.openlayers.control.LayerSwitcher

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.