move getFeature() to the Layer

git-svn-id: http://svn.openlayers.org/trunk/openlayers@995 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-07-21 19:19:54 +00:00
parent 82d335df03
commit b063447471
2 changed files with 37 additions and 16 deletions

View File

@@ -107,22 +107,6 @@ OpenLayers.Tile.WFS.prototype =
},
/**
* @param {String} featureID
*/
getFeature: function(featureID) {
var foundFeature = null;
if (featureID != null) {
for(var i=0; i < this.features.length; i++) {
var feature = this.features[i];
if (feature.id = featureID) {
foundFeature = feature;
}
}
}
return foundFeature;
},
/** @final @type String */
CLASS_NAME: "OpenLayers.Tile.WFS"
}