How to use the @igo2/utils.ObjectUtils.removeKeys function in @igo2/utils

To help you get started, we’ve selected a few @igo2/utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github infra-geo-ouverte / igo2-lib / packages / geo / src / lib / search / shared / sources / icherche.ts View on Github external
private computeProperties(data: IChercheReverseData): { [key: string]: any } {
    const properties = ObjectUtils.removeKeys(
      data.properties,
      IChercheReverseSearchSource.propertiesBlacklist
    );
    return properties;
  }
github infra-geo-ouverte / igo2-lib / packages / geo / src / lib / search / shared / sources / storedqueries.ts View on Github external
private computeProperties(data: StoredQueriesData): { [key: string]: any } {
    const properties = ObjectUtils.removeKeys(
      data.properties,
      StoredQueriesSearchSource.propertiesBlacklist
    );
    return properties;
  }
}
github infra-geo-ouverte / igo2-lib / projects / geo / src / lib / search / shared / sources / icherche.ts View on Github external
private computeProperties(data: IChercheData): { [key: string]: any } {
    const properties = ObjectUtils.removeKeys(
      data.properties,
      IChercheSearchSource.propertiesBlacklist
    );
    return Object.assign(properties, { type: data.doc_type });
  }
}
github infra-geo-ouverte / igo2-lib / packages / geo / src / lib / search / shared / sources / storedqueries.ts View on Github external
private computeProperties(
    data: StoredQueriesReverseData
  ): { [key: string]: any } {
    const properties = ObjectUtils.removeKeys(
      data.properties,
      StoredQueriesReverseSearchSource.propertiesBlacklist
    );
    return Object.assign(properties, { type: data.properties.doc_type });
  }
}
github infra-geo-ouverte / igo2-lib / packages / geo / src / lib / search / shared / sources / icherche.ts View on Github external
private computeProperties(data: IChercheData): { [key: string]: any } {
    const properties = ObjectUtils.removeKeys(
      data.properties,
      IChercheSearchSource.propertiesBlacklist
    );

    if (data.geometry === undefined) {
      return Object.assign({ type: data.index }, properties);
    }

    const googleLinksProperties: {
      GoogleMaps: string;
      GoogleStreetView?: string;
    } = {
      GoogleMaps: GoogleLinks.getGoogleMapsLink(
        data.geometry.coordinates[0],
        data.geometry.coordinates[1]
      )