<font color="#000000"><font size="2"><font face="trebuchet ms,sans-serif">any idea??<br><br><br>-Vito-<br><br><br clear="all"></font></font></font>--<br>-----------<br>Tafuni Vito<br><a href="mailto:vito@vitotafuni.com">vito@vitotafuni.com</a><br>
---------------------------------------------<br>"Verba volant, scripta manent... data corrupted"<br>
<br><br><div class="gmail_quote">2010/6/22 Vito Tafuni <span dir="ltr"><<a href="mailto:vito@vitotafuni.com">vito@vitotafuni.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<font color="#000000"><font size="2"><font face="trebuchet ms,sans-serif">Hi to all<br>I have 2 vector layers:<br>- layer1 contains vector markers (features) with their own styles, etc etc<br>- layer2 contains a circle vector feature (regularpolygon with sides:30)<br>
<br>i would like to hide all the markers in layer1 than are not covered by the vector feature in layer2.<br><br>I have to do it with the stylemap of layer1 or can I use another way to set a filter on layer1 like this:<br>
layer_filter = new OpenLayers.Filter.Logical({<br> type: OpenLayers.Filter.Logical.AND,<br> filters: [<br> new OpenLayers.Filter.Spatial({<br> type: OpenLayers.Filter.Spatial.BBOX,<br>
value: filter.geometry.getBounds()<br> })<br> ]<br> });<br>??<br>don't trouble about the Logical.AND... my idea is to filter with more than one feature!<br>
<br>I've seen the filter property in the Layer.Vector api doc but no example on the web about how to using it!<br><br>any idea is welcome!!<br><br><br>-Vito-<br><br><br><br><br clear="all"></font></font></font>--<br>
-----------<br>
Tafuni Vito<br><a href="mailto:vito@vitotafuni.com" target="_blank">vito@vitotafuni.com</a><br>---------------------------------------------<br>"Verba volant, scripta manent... data corrupted"<br>
</blockquote></div><br>