getFeatureByUid(uid) {
    const feature = this.uidIndex_[uid];
    return feature !== undefined ? feature : null;
  }
Get a feature by its internal unique identifier (using `getUid`).

@param {string} uid Feature identifier.
@return {FeatureType|null} The feature (or `null` if not found).