[fusion-users] map.query() using filter option

Sapucaia sapucaiatotal at gmail.com
Sun May 25 11:37:23 EDT 2008


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/fusion-users/attachments/20080525/ee06e8fc/attachment.html


More information about the fusion-users mailing list