adds a new getVisibility method in the Feature.Vector class, used in the SelectFeature control this method now allows us to tell the select feature box handler wether to select or not the features, r=ahocevar, (Closes #2418)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10064 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -548,6 +548,11 @@ OpenLayers.Control.SelectFeature = OpenLayers.Class(OpenLayers.Control, {
|
||||
layer = layers[l];
|
||||
for(var i=0, len = layer.features.length; i<len; ++i) {
|
||||
var feature = layer.features[i];
|
||||
// check if the feature is displayed
|
||||
if (!feature.getVisibility()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (this.geometryTypes == null || OpenLayers.Util.indexOf(
|
||||
this.geometryTypes, feature.geometry.CLASS_NAME) > -1) {
|
||||
if (bounds.toGeometry().intersects(feature.geometry)) {
|
||||
|
||||
Reference in New Issue
Block a user