Make getFeatureById method exportable

This commit is contained in:
Tim Schaub
2014-06-03 11:39:15 -06:00
parent 73bfd326d0
commit 13d964488f

View File

@@ -346,6 +346,7 @@ ol.source.Vector.prototype.getExtent = function() {
*
* @param {string|number} id Feature identifier.
* @return {ol.Feature} The feature (or `null` if not found).
* @todo api
*/
ol.source.Vector.prototype.getFeatureById = function(id) {
var feature = this.idIndex_[id.toString()];