Hi, I need to have my map to show features if they are in the current extent
and if they match a selected category.
So I've written a filter function that uses the filterBy of the
FeatureStore:

*function sitesFilter(){*
* **var extent = map.getExtent();*
* **featureStore.filterBy(function(record){*
* **var currentCategory = Ext.getCmp('category').value;*
* **var feature = record.data.feature;*
* **if(feature.data.category == currentCategory){*
* **return extent.containsLonLat(new
OpenLayers.LonLat(feature.geometry.x,feature.geometry.y));*
* **}else if(!currentCategory || currentCategory == 'ALL'){*
* **return extent.containsLonLat(new
OpenLayers.LonLat(feature.geometry.x,feature.geometry.y));*
* **}*
* **});*

this is called on zoomend, moveend or when a category is chosen.
All works pretty well and quick with each browser except for ie which is
extremely slow and unusable.

Is there something I can do to speed it up?

Thanks in advance
-- 
Simone
_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to