Changes between Version 30 and Version 31 of ZooWorkshop/FOSS4GJapan/BuildingWPSClientUsingOL


Ignore:
Timestamp:
Oct 22, 2010, 11:33:31 PM (14 years ago)
Author:
djay
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ZooWorkshop/FOSS4GJapan/BuildingWPSClientUsingOL

    v30 v31  
    1818  <title>ZOO WPS Client example</title>
    1919  <style>
    20   #map{width:600px;height:600px;}
     20  #map{width:700px;height:600px;}
    2121  </style>
    2222  <link rel="stylesheet" href="/openlayers/theme/default/style.css" type="text/css" />
     
    2929}}}
    3030
    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 States data as WMS.
     31The 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.
    3232
    3333{{{
     
    3535var map, layer, select, hover, multi, control;
    3636
     37var typename="regions";
     38var main_url="http://localhost/cgi-bin/mapserv?map=/var/www/zoo-demo/wfs.map";
     39
    3740function init(){
    38   OpenLayers.ProxyHost= "../cgi-bin/proxy.cgi?url=";
    3941  map = new OpenLayers.Map('map', {
    4042    controls: [
     
    4446    ]
    4547  });
    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});
    5253  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);
    5455}
    5556}}}

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png