[OpenLayers-Commits] r4236 - sandbox/jachym/openlayers/examples
commits at openlayers.org
commits at openlayers.org
Wed Sep 12 09:40:13 EDT 2007
Author: jachym
Date: 2007-09-12 09:40:11 -0400 (Wed, 12 Sep 2007)
New Revision: 4236
Added:
sandbox/jachym/openlayers/examples/wps.html
Log:
new example added
Added: sandbox/jachym/openlayers/examples/wps.html
===================================================================
--- sandbox/jachym/openlayers/examples/wps.html (rev 0)
+++ sandbox/jachym/openlayers/examples/wps.html 2007-09-12 13:40:11 UTC (rev 4236)
@@ -0,0 +1,64 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
+<head>
+ <meta name="keywords" content="" />
+ <meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8" />
+ <meta name="description" content="" />
+ <title>OpenLayers WPS</title>
+
+ <style type="text/css">
+ #map {
+ width: 512px;
+ height: 512px;
+ border: 1px solid black;
+ }
+ </style>
+
+ <script src="../../OpenLayers/lib/OpenLayers.js"></script>
+ <script src="WPS.js"></script>
+ <script type="text/javascript">
+ <!--
+ // making this a global variable so that it is accessible for
+ // debugging/inspecting in Firebug
+ var map = null;
+
+ function init(){
+
+ OpenLayers.ProxyHost = "/cgi-bin/olproxy.cgi?url=";
+ map = new OpenLayers.Map('map');
+
+ var options = {
+ resolutions: [1.40625,0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.00137329101]
+ };
+
+ var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
+ "http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'},
+ options);
+
+ var options2 = {
+ resolutions: [0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.00137329101]
+ };
+ var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic",
+ "http://wms.jpl.nasa.gov/wms.cgi",
+ {layers: "modis,global_mosaic"}, options2);
+
+ vlayer = new OpenLayers.Layer.Vector( "Editable" );
+
+ map.addLayers([ol_wms, jpl_wms, vlayer]);
+ map.addControl(new OpenLayers.Control.LayerSwitcher());
+ map.addControl(new OpenLayers.Control.EditingToolbar(vlayer));
+ map.addControl(new OpenLayers.Control.WPS());
+
+ // map.setCenter(new OpenLayers.LonLat(0, 0), 0);
+ map.zoomToMaxExtent();
+
+ }
+ // -->
+
+ </script>
+ </head>
+ <body onload="init()">
+ <h1>OpenLayers WPS</h1>
+ <div id="map"></div>
+ </body>
+</html>
More information about the Commits
mailing list