hasFeature(feature) {
    const id = feature.getId();
    if (id !== undefined) {
      return id in this.idIndex_;
    }
    return getUid(feature) in this.uidIndex_;
  }
Returns true if the feature is contained within the source.
@param {FeatureType} feature Feature.
@return {boolean} Has feature.
@api