All pastes #940297 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-03-12 21:38 UTC
rendered paste body
<html>
<head>
  <title>OpenLayers Example</title>
    <script
    src="http://openlayers.org/api/OpenLayers.js"></script>
    </head>
    <body>
      <div style="width:100%; height:100%" id="map"></div>
      <script defer="defer" type="text/javascript">
        var map = new OpenLayers.Map('map');
        var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", 
            "http://labs.metacarta.com/wms/vmap0", {layers: 'basic'} );
        var GW_wms = new OpenLayers.Layer.WmS( "Gallaway WMS", 
            "http://localhost:1979/geoserver/wms?service=WMS&request=GetCapabilities", {layers: "parcels"} );
	map.addLayers ([wms, GW_wms]);
        map.zoomToMaxExtent();
      </script>

</body>
</html>