[OpenLayers-Users] OpenLayers 2.2, Firefox 2.0,MapServer WMS

Justin Fail justin.fail at gmail.com
Wed Nov 15 21:16:52 EST 2006


Oops, I just made the options and parameters changes for the WMS.Untiledclass:

<html>
<head>
<script src="js/OL/lib/OpenLayers.js"></script>
</head>
<body>
  <div id="map" style="width:800px; height:800px; border: 1px solid
#000;"></div>
  <script defer="defer" type="text/javascript">
    <!--
    //Init max extent for map
    var maxBounds = new OpenLayers.Bounds(171.95,-41.61,179.18,-34.37);

    //Init map object
    var map = new OpenLayers.Map('map',{ controls: [], tileSize: new
OpenLayers.Size(800,800), resolutions: [0.00274658203125,0.001373291015625,
0.0006866455078125,0.00034332275390625,0.000171661376953125,
0.0000858306884765625,0.00004291534423828125,0.000021457672119140625,
0.0000107288360595703125,0.00000536441802978515625] });

    //Add controls to map
    map.addControl(new OpenLayers.Control.PanZoomBar());
    //map.addControl(new OpenLayers.Control.MouseDefaults());
    map.addControl(new OpenLayers.Control.MouseToolbar());

    //Add layers to map
    var wms = new OpenLayers.Layer.WMS.Untiled( "UCL WMS", "
http://gbs-justin/cgi-bin/mapserv_tracker.exe?service=WMS", {layers:
'Coastline',format:'gif'},{buffer:1,maxExtent:maxBounds,maxResolution:'auto'}
);
    map.addLayer(wms);

    //Define start location for map
    map.setCenter(new OpenLayers.LonLat(174.8,-36.85));

    -->
  </script>
</body>
</html>

On 16/11/06, Christopher Schmidt <crschmidt at metacarta.com> wrote:
>
> On Thu, Nov 16, 2006 at 01:15:04PM +1300, Justin Fail wrote:
> > Yes, I'd been messing around with different options for the layers and
> map,
> > so there were some remnants left over.
> > I made your changes to the Layer parameters and options and what do you
> know
> > - it all appears fine in FF2.0 again.
> > Even using port 80.
> > Thanks.
> >
> > Now to figure out how to over-ride these event handlers....
>
> Which ones?
>
> Regards,
> --
> Christopher Schmidt
> MetaCarta
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20061116/6ce6e499/attachment.html


More information about the Users mailing list