Hey,

I'm new to GeoExt and ExtJS, and I've started to set up an small project. Within this project I get my features dynamically generated by an MySQL-database as KML. I import the features as an OpenLayers.Layer.Vecor, store them in a GeoExt.data.FeatureStore and output them in a grid-panel. Now I'd like to filter my features according to certain parameters.

Firebug does not output any errors in the script. Noneonetheless I do not get a filtered result in my grid-panel. What am I missing?

Here's my codesnippet:|
|

|var  events=  new  OpenLayers.Layer.Vector("events",  {
    preFeatureInsert:  function(feature)  {
        feature.geometry.transform(
          new  OpenLayers.Projection("EPSG:4326"),  map.getProjectionObject()
); }
});

var  store=  new  GeoExt.data.FeatureStore({
    layer:  events,
    fields:  [
        {name:  "name",  type:  "string"},
        {name:  "description",  type:  "string"}
    ],
    proxy:  new  GeoExt.data.ProtocolProxy({
        protocol:  new  OpenLayers.Protocol.HTTP({
            url:  "./php/phpsql_events.php",
            format:  new  OpenLayers.Format.KML({
                     extractStyles:  true,
                     extractAttributes:  true
            })
        })
    }),
    featureFilter:  new  OpenLayers.Filter.Comparison({
                       type:  OpenLayers.Filter.Comparison.EQUAL_TO,
                 property:  "name",
                 value:  "value"
    }),
    autoLoad:  true
});|


_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to