Skip to content

Commit

Permalink
Merge pull request #85 from IGNF/fix/unknown-ol-layer
Browse files Browse the repository at this point in the history
Corrige parsing des ressources liées à un fichier de config local
  • Loading branch information
elias75015 authored Aug 2, 2023
2 parents 41f5f02 + 6fcecc9 commit 3d4ddb0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 6 additions & 2 deletions DRAFT_CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# Bibliothèque d'accès aux services Géoportail, version 3.3.2
# Bibliothèque d'accès aux services Géoportail, version 3.3.3

**20/07/2023 : 3.3.2**
**02/08/2023 : 3.3.3**

> release of geoportal access library
## Summary

Correction mineure sur l'utilisation d'un fichier de configuration local

## Changelog

* [Added]
Expand All @@ -16,6 +18,8 @@

* [Fixed]

- Correction parsing des ressources liées à un fichier de config local (#85)

* [Deprecated]

* [Security]
Expand Down
Binary file modified geoportal-access-lib-3.3.2.tgz
Binary file not shown.
6 changes: 5 additions & 1 deletion src/Services/Config/Config.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ function Config (options) {
this.options.sync = options.sync || false;

// gestion d'un tableau d'url des fichiers de configuration
this.options.listConfigUrls = (options.customConfigFile) ? [options.customConfigFile] : DefaultUrlService.Config.url(options.apiKey.split(","));
this.options.listConfigUrls = (options.customConfigFile)
? [options.customConfigFile]
: !Array.isArray(options.apiKey)
? DefaultUrlService.Config.url(options.apiKey.split(","))
: DefaultUrlService.Config.url(options.apiKey);
}

/**
Expand Down

0 comments on commit 3d4ddb0

Please sign in to comment.