Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibilité de passer une liste de clés à l'interface de l'autoconf #77

Merged
merged 7 commits into from
Dec 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions DRAFT_CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# Bibliothèque d'accès aux services Géoportail, version 3.0.3
# Bibliothèque d'accès aux services Géoportail, version 3.0.4

**10/11/2021 : 3.0.3**
**03/12/2021 : 3.0.4**

> release of geoportal access library

## Summary

## Changelog

* [Added]

- En options en entrée de l'autoconf, il y a possibilité désormais de passer une liste de clés sous forme de string. ex. "key1,key2,key3" (#77)

* [Changed]

* [Removed]

* [Fixed]

- seule la geometrie complete est renvoyée par le service si la geometrie par portion n'est pas demandée (49c0059be9e0a2aa3f5e41af9ebfdb28152a7452)

* [Deprecated]

Expand Down
Binary file removed geoportal-access-lib-3.0.2.tgz
Binary file not shown.
Binary file added geoportal-access-lib-3.0.3.tgz
Binary file not shown.
5 changes: 5 additions & 0 deletions src/Services/AutoConf/AutoConf.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ function AutoConf (options) {
this.logger = Logger.getLogger("Gp.Services.AutoConf");
this.logger.trace("[Constructeur AutoConf (options)]");

// si on a une liste de plusieurs clés en options, on la transforme en tableau (multiKeys)
if ((typeof this.options.apiKey === "string" || this.options.apiKey instanceof String) && Array.isArray(this.options.apiKey.split(",")) && this.options.apiKey.split(",").length > 1) {
this.options.apiKey = this.options.apiKey.split(",");
}

// #####################
// analyse des options
// #####################
Expand Down