I am using openlayers function to display kml output over my map.
I am generating a kml file when user give a search for any location. So the kml file keeps changing for each search (Since my result keeps changing).
I am using :
kmlLayer = new OpenLayers.Layer.GML("KML","../kml/searchResult.kml",
{
projection: new OpenLayers.Projection("EPSG:4326"),
format: OpenLayers.Format.KML,
formatOptions: {
extractStyles: true,
extractAttributes: true
}
});
Everything works fine in MozillaFF browser.
But in IE the layer does not get displayed. But when I tried deleting temp files of the browser the layer get displayed for next search.But the layer displayed was that of the previous search result.
I am not really able to hook up the issue. Can any one pls suggest me the best approach for loading dynamic kml file in my map which works fine in most browse.
It would be highly helpfull and appreciated if any one could help me on this issue. I am not deep into kml's so pls do help on this issue.
Thanks in advance.