Skip to content

Commit

Permalink
release-3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
elias75015 committed Nov 10, 2021
2 parents f8f72b8 + 7248323 commit 60ba544
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions DRAFT_CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Bibliothèque d'accès aux services Géoportail, version 3.0.1
# Bibliothèque d'accès aux services Géoportail, version 3.0.2

**02/11/2021 : 3.0.1**
**10/11/2021 : 3.0.2**

> release of geoportal access library
Expand All @@ -12,12 +12,12 @@

* [Changed]

- [BREAKING CHANGE] utilisation du service itinéraire v2, adaptation de l'interface (#68)

* [Removed]

* [Fixed]

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

* [Deprecated]

* [Security]
Binary file removed geoportal-access-lib-3.0.0.tgz
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "geoportal-access-lib",
"version": "3.0.1",
"date": "02/11/2021",
"version": "3.0.2",
"date": "10/11/2021",
"description": "French Geoportal resources access library",
"module": "src/Gp.js",
"main": "dist/GpServices-src.js",
Expand Down
4 changes: 2 additions & 2 deletions src/Services/Route/Response/RouteResponseFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ var RouteResponseFactory = {
data.bbox.top = parseFloat(JSONResponse.bbox[3]);
}

if (data.hasOwnProperty("routeGeometry")) {
if (data.hasOwnProperty("routeGeometry") && !options.geometryInInstructions) {
data.routeGeometry = JSONResponse.geometry;
}

if (data.hasOwnProperty("routeInstructions")) {
if (data.hasOwnProperty("routeInstructions") && options.geometryInInstructions) {
var legList = JSONResponse.portions;
var i;
if (Array.isArray(legList) && legList.length) {
Expand Down
3 changes: 2 additions & 1 deletion src/Services/Route/Route.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,8 @@ Route.prototype.analyzeResponse = function (error, success) {
rawResponse : this.options.rawResponse,
onError : error,
onSuccess : success,
scope : this
scope : this,
geometryInInstructions : this.options.geometryInInstructions
};

RouteResponseFactory.build(options);
Expand Down

0 comments on commit 60ba544

Please sign in to comment.