add a getFeature() to Tile.WFS
git-svn-id: http://svn.openlayers.org/trunk/openlayers@994 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -107,6 +107,22 @@ 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 */
|
/** @final @type String */
|
||||||
CLASS_NAME: "OpenLayers.Tile.WFS"
|
CLASS_NAME: "OpenLayers.Tile.WFS"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user