Changes between Version 30 and Version 31 of ZooWorkshop/FOSS4GJapan/BuildingWPSClientUsingOL
- Timestamp:
- Oct 22, 2010, 11:33:31 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ZooWorkshop/FOSS4GJapan/BuildingWPSClientUsingOL
v30 v31 18 18 <title>ZOO WPS Client example</title> 19 19 <style> 20 #map{width: 600px;height:600px;}20 #map{width:700px;height:600px;} 21 21 </style> 22 22 <link rel="stylesheet" href="/openlayers/theme/default/style.css" type="text/css" /> … … 29 29 }}} 30 30 31 The following !JavaScript code must then be added in a {{{<script></script>}}}} section within the {{{<head>}}} one. This will setup a map showing the United Statesdata as WMS.31 The following !JavaScript code must then be added in a {{{<script></script>}}}} section within the {{{<head>}}} one. This will setup a map showing the Japanese ???? data as WMS. 32 32 33 33 {{{ … … 35 35 var map, layer, select, hover, multi, control; 36 36 37 var typename="regions"; 38 var main_url="http://localhost/cgi-bin/mapserv?map=/var/www/zoo-demo/wfs.map"; 39 37 40 function init(){ 38 OpenLayers.ProxyHost= "../cgi-bin/proxy.cgi?url=";39 41 map = new OpenLayers.Map('map', { 40 42 controls: [ … … 44 46 ] 45 47 }); 46 layer = new OpenLayers.Layer.WMS( 47 "States WMS/WFS", 48 "http://localhost:8082/geoserver/ows", 49 {layers: 'topp:states', format: 'image/png'}, 50 {buffer:1, singleTile:true} 51 ); 48 layer = new OpenLayers.Layer.WMS(typename,main_url, { 49 layers: 'regions', 50 transparent: 'true', 51 format: 'image/png' 52 }, {isBaseLayer: false,visibility: true,buffer: 0,singleTile: true}); 52 53 map.addLayers([layer]); 53 map. zoomToExtent(new OpenLayers.Bounds(-140.444336,25.115234,-44.438477,50.580078));54 map.setCenter(new OpenLayers.LonLat(138,33.5),5); 54 55 } 55 56 }}}