Re: [OpenLayers-Users] KML doesn't display from Http response

2010-07-08 Thread fdesbois
It's ok I resolve my problem setting the Content-Length in response with stream length bytes, so Transfer-Encoding will be not used and Kml layer is displayed correctly ! -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/KML-doesn-t-display-from-Http-response-tp5265634p5270

Re: [OpenLayers-Users] KML doesn't display from Http response

2010-07-08 Thread fdesbois
fdesbois wrote: > > > KML stream - > > url = "servletName" > > Response > > ServerApache-Coyote/1.1 > Content-Type application/vnd.google-earth.kml+xm

[OpenLayers-Users] KML doesn't display from Http response

2010-07-07 Thread fdesbois
Hi, I've got a problem when loading a KML file. If I use an existing file in my webapp, the layer appears correctly, but if I use a Servlet returning a Kml as response, it doesn't work. Here is the KML initialization where title and url are parameters of initialize method put onLoad of the page :