[OpenLayers-Users] WMSCapabilities

James Leveille James_Leveille at dmr.ca
Wed Mar 18 15:28:35 EDT 2009


This time, with an appropriate title (sorry) ...

Hi all,
 
I've been struggling with de WMSCapabilities (as defined here http://trac.openlayers.org/ticket/1176 <https://webmail.consulting-fujitsu.com/exchweb/bin/redir.asp?URL=http://trac.openlayers.org/ticket/1176> ).
Works fine with FF, but not with IE(6).
The "capFormat.read" seems to be the problem (Object required).
Maybe related to XML with IE ...

Is there a workaround ?
 
Thanks a lot
 
---
function handleResult ()
{
    if (oHttpRequest.readyState == 4) // COMPLETED
    {
        if (oHttpRequest.status == 200)
        {
            try
            {
                var xmlFormat = new OpenLayers.Format.XML();
                var xml = xmlFormat.read(oHttpRequest.responseText);
                var cap = capFormat.read(xml);
 
                oTitle=cap.service.title;
                oLayersDispn=cap.capability.layers;
            }
            catch (err)
            {
             ...
            }
        }
        else
            ...
    }
}
 
 
James
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090318/e6d4fe3c/attachment.html


More information about the Users mailing list