hasFeature(feature) {
    const id = feature.getId();
    if (id !== undefined) {
      return id in this.idIndex_;
    } else {
      return getUid(feature) in this.uidIndex_;
    }
  }
/**
   * Returns true if the feature is contained within the source.
   * @param {import("../Feature.js").default<Geometry>} feature Feature.
   * @return {boolean} Has feature.
   * @api
   */
Returns true if the feature is contained within the source.
Returns true if the feature is contained within the source .
hasFeature(feature) {
    const id = feature.getId();
    if (id !== undefined) {
      return id in this.idIndex_;
    } else {
      return getUid(feature) in this.uidIndex_;
    }
  }
hasFeature ( feature ) { const id = feature . getId ( ) ; if ( id !== undefined ) { return id in this . idIndex_ ; } else { return getUid ( feature ) in this . uidIndex_ ; } }
Returns true if the feature is contained within the source.
Returns true if the feature is contained within the source .