[Users] GeoExt 1.1 FeatureStore featurefilter
Julien-Samuel Lacroix
jlacroix at mapgears.com
Wed Oct 30 18:43:58 CET 2013
Hello,
Can you provide an example of the KML file you are returning, or adapt
your example to use the data available in the examples.
Julien
On 13-10-29 03:33 PM, Frederick-Claud Dimmer wrote:
> 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",
> <
> pan class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 12px; vertical-align: baseline; color: black;">{
> 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..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
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>
--
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/
More information about the Users
mailing list