map.query() using filter option

1 message Options
Embed this post
Permalink
Vitor Fortunato

map.query() using filter option

Reply Threaded More More options
Print post
Permalink
Hi list,

I am trying to figure out how to get map.query() method working using filter option.


I have a simple widget that uses the following code:

execute : function() {   
    var options = {};    
    options.selectionType = 'INTERSECTS';
    options.geometry = "POLYGON((-75.58840579710144 -10.755072463768112, -61.16086956521739 -10.755072463768112, -61.16086956521739 0.005797101449276809, -75.58840579710144 0.005797101449276809, -75.58840579710144 -10.755072463768112))";
    options.maxFeatures = 0;
    options.filter = "gid=1"
    options.layers = 'States';
    
    this.getMap().query(options);
}


the polygon intersects with 5 states, but I would like to select just the state with 'gid = 1', using the filter option.
My code select the 5 states that intersect with the polygon and don't apply the filter.

What I am doing wrong?

thanks in advance
Vitor Sapucaia Fortunato

_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users