[OpenLayers-Users] available WMS maps and troubleshooting

Arnd Wippermann arnd.wippermann at web.de
Wed Oct 28 18:31:54 EDT 2009


Hi,

The wms are only available between -170,15,-60,75 and only for resolutions
smaller than your third resolution.

     var options = { resolutions:
[0.46875,0.3515625,0.17578125,0.087890625,0.0439453125],
         maxExtent:new OpenLayers.Bounds(-170,15,-60,75),
         controls: []
     };

     var map = new OpenLayers.Map('map', options);

     var drg = new OpenLayers.Layer.WMS("Topo Maps",
"http://terraservice.net/ogcmap.ashx", {layers: "DRG"});
     map.addLayers([drg]);

     map.addControl( new OpenLayers.Control.LayerSwitcher() );
     map.addControl(new OpenLayers.Control.PanZoomBar(), new
OpenLayers.Pixel(5,5));
     map.addControl(new OpenLayers.Control.MouseDefaults());

     map.setCenter(new OpenLayers.LonLat(-100, 40), 4);


Arnd


-----Ursprüngliche Nachricht-----
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von Vika
Gesendet: Mittwoch, 28. Oktober 2009 21:36
An: users at openlayers.org
Betreff: [OpenLayers-Users] available WMS maps and troubleshooting


Hi, 

I am very new to OL. I am trying to load Topo Map layer according to a
sample usage http://trac.openlayers.org/wiki/AvailableWMSServices

 // create map options
    var options = {
        resolutions:
[0.46875,0.3515625,0.17578125,0.087890625,0.0439453125],
        controls: []
    };

 var map = new OpenLayers.Map('map', options);

  var drg = new OpenLayers.Layer.WMS("Topo Maps",
                "http://terraservice.net/ogcmap.ashx",
                {layers: "DRG"});
 map.addLayers([drg]);

However I get pink tile. The location of an image is
http://openlayers.org/dev/img/blank.gif
What does this mean ? How can I troubleshoot the problem ?

thanks

Victoria

--
View this message in context:
http://n2.nabble.com/available-WMS-maps-and-troubleshooting-tp3908016p390801
6.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list