[OpenLayers-Users] Open Layers Configuration

Kalyan Kamepalli kalyan.kamepalli at gmail.com
Mon Jul 5 21:00:33 EDT 2010


Hi Group,

There are few security concerns at my organization and due to that, I can
not directly access openlayers.org for OpenLayers.js. So, I installed it and
changed my script as below

<script src=*'D:\OpenLayers-2.9.1\OpenLayers.js'*></script>
 </head>
 <body>
  <div id='map'></div>
  <script type="text/javascript">
   //var map = new OpenLayers.Map('map',{maxResolution: 1000} );
   var map = new OpenLayers.Map('map', {
      maxExtent: new OpenLayers.Bounds(
-638480920.244,-188017611.367,665489491.580,1019789790.73),
      maxResolution: 5000
      } );
   var wmscURL = [
    "
http://siasporapv01:8080/gss/ogc?version=1.3.0&crs=sw:nsw_trans_mercator_mm&styles=Default
"
    ];
   var myLayer = new OpenLayers.Layer.WMS( 'Cambridge Steet' , wmscURL , {
layers: 'background' ,  format: 'image/png'} , { buffer: 1 , isBaseLayer:
true } );
   map.addLayer( myLayer )
   map.zoomToMaxExtent();
  </script>

Now the problem is that, It's not showing any controls on the map and also
not sending any requests to my server. Everything comes out with no image
tiles.
If I use openlayers.org/api/openlayers.js on my local machine it works
perfect.

Am I missing something ? Is is not the way to configure OpenLayers ?

Thanks,
Kalyan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100706/48c648db/attachment.html


More information about the Users mailing list