[OpenLayers-Dev] filter markers on a vector layer with a vector
feature
Vito Tafuni
vito at vitotafuni.com
Thu Jun 24 12:41:23 EDT 2010
solved with a spatial filter in the style rule
--
-----------
Tafuni Vito
vito at vitotafuni.com
---------------------------------------------
"Verba volant, scripta manent... data corrupted"
2010/6/23 Vito Tafuni <vito at vitotafuni.com>
> any idea??
>
>
> -Vito-
>
>
> --
> -----------
> Tafuni Vito
> vito at vitotafuni.com
> ---------------------------------------------
> "Verba volant, scripta manent... data corrupted"
>
>
> 2010/6/22 Vito Tafuni <vito at vitotafuni.com>
>
> Hi to all
>> I have 2 vector layers:
>> - layer1 contains vector markers (features) with their own styles, etc etc
>> - layer2 contains a circle vector feature (regularpolygon with sides:30)
>>
>> i would like to hide all the markers in layer1 than are not covered by the
>> vector feature in layer2.
>>
>> I have to do it with the stylemap of layer1 or can I use another way to
>> set a filter on layer1 like this:
>> layer_filter = new OpenLayers.Filter.Logical({
>> type: OpenLayers.Filter.Logical.AND,
>> filters: [
>> new OpenLayers.Filter.Spatial({
>> type: OpenLayers.Filter.Spatial.BBOX,
>> value: filter.geometry.getBounds()
>> })
>> ]
>> });
>> ??
>> don't trouble about the Logical.AND... my idea is to filter with more than
>> one feature!
>>
>> I've seen the filter property in the Layer.Vector api doc but no example
>> on the web about how to using it!
>>
>> any idea is welcome!!
>>
>>
>> -Vito-
>>
>>
>>
>>
>> --
>> -----------
>> Tafuni Vito
>> vito at vitotafuni.com
>> ---------------------------------------------
>> "Verba volant, scripta manent... data corrupted"
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-dev/attachments/20100624/897c7abd/attachment.html
More information about the Dev
mailing list