[OpenLayers-Users] WMSCapabilities

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Thu Mar 19 14:32:15 EDT 2009


Hi,

you need to override the OGC mimetype in the proxy.cgi script to 
text/xml for it to work in IE, see:

http://openlayers.org/pipermail/dev/2007-December/002039.html

Best regards,
Bart

James Leveille wrote:
> 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
>  
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>   


-- 
Bart van den Eijnden
OSGIS, Open Source GIS
bartvde at osgis.nl
http://www.osgis.nl




More information about the Users mailing list