[OpenLayers-Users] my filter request to kml returns full kml each time help

herah herah.k at gmail.com
Tue Apr 5 13:20:40 EDT 2011


hi,

I have a kml document displayed as a layer,i want to seperate the features
retrieved into different layers depending on the feature type
but when i use a filter it sends the request to the doc but every time the
whole kml is returned,im def not on par with something

this is what i see on console

http://localhost/cgi-bin/proxy.cgi?url=http%3A%2F%2Flocalhost%2Fdoc.kml%3FFILTER%3D%26name__ilike%3D%26queryable%3Dname%2Cname

Another option could be to hide/show features,ive tried renderIntent but
nothing happens

var bla = kmlLayer.features;
for(x in bla)
{
var t = ""+bla[x].fid;
var temp = t.substr(0,1);
alert(temp);
if(temp == "c")
{
kmlLayer.features[x].renderIntent = "hidden";
alert("hide");
}
}

Im stuck and would really appreciate any help

regards
Herah

-----
Thanks,
Herah
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/my-filter-request-to-kml-returns-full-kml-each-time-help-tp6243127p6243127.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list