[OpenLayers-Users] RE : Openlayers and Mapnik - Problems generatingmaps in OL with XML (Mapnik)

James Leveille James_Leveille at dmr.ca
Wed Mar 18 15:27:51 EDT 2009


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/d58beab4/attachment.html


More information about the Users mailing list