Skip to content

Commit

Permalink
Merge branch 'release-itowns-2.3.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
elias75015 committed Mar 30, 2021
2 parents 383fc30 + 753809e commit d4fbc99
Show file tree
Hide file tree
Showing 58 changed files with 578 additions and 371 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build project ...
name: Build

on:
pull_request:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-itowns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ jobs:
- name: Reset draft changelog
run: |
sed -i -e '/# Extension Geoportail Itowns/{:a; N; /---/!ba; r .github/CHANGELOG_TEMPLATE.md' -e 'd;}' DRAFT_CHANGELOG.md
sed -e 's/__UP_LIBRARY__/Itowns/' DRAFT_CHANGELOG.md
sed -e 's/__LO_LIBRARY__/itowns/' DRAFT_CHANGELOG.md
sed -i '0,/__UP_LIBRARY__/s/__UP_LIBRARY__/Itowns/' DRAFT_CHANGELOG.md
sed -i '0,/__LO_LIBRARY__/s/__LO_LIBRARY__/itowns/' DRAFT_CHANGELOG.md
- name: Archive changelog
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-leaflet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ jobs:
- name: Reset draft changelog
run: |
sed -i -e '/# Extension Geoportail Leaflet/{:a; N; /---/!ba; r .github/CHANGELOG_TEMPLATE.md' -e 'd;}' DRAFT_CHANGELOG.md
sed -e 's/__UP_LIBRARY__/Leaflet/' DRAFT_CHANGELOG.md
sed -e 's/__LO_LIBRARY__/leaflet/' DRAFT_CHANGELOG.md
sed -i '0,/__UP_LIBRARY__/s/__UP_LIBRARY__/Leaflet/' DRAFT_CHANGELOG.md
sed -i '0,/__LO_LIBRARY__/s/__LO_LIBRARY__/leaflet/' DRAFT_CHANGELOG.md
- name: Archive changelog
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-ol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,9 @@ jobs:
# cf. http://fahdshariff.blogspot.com/2012/12/sed-mutli-line-replacement-between-two.html
- name: Reset draft changelog
run: |
sed -i -e '/# Extension Geoportail OpenLayers/{:a; N; /---/!ba; r .github/CHANGELOG_TEMPLATE.md' -e 'd;}' DRAFT_CHANGELOG.md
sed -e 's/__UP_LIBRARY__/OpenLayers/' DRAFT_CHANGELOG.md
sed -e 's/__LO_LIBRARY__/openlayers/' DRAFT_CHANGELOG.md
sed -i '/# Extension Geoportail OpenLayers/{:a; N; /---/!ba; r .github/CHANGELOG_TEMPLATE.md' -e 'd;}' DRAFT_CHANGELOG.md
sed -i '0,/__UP_LIBRARY__/s/__UP_LIBRARY__/OpenLayers/' DRAFT_CHANGELOG.md
sed -i '0,/__LO_LIBRARY__/s/__LO_LIBRARY__/openlayers/' DRAFT_CHANGELOG.md
- name: Archive changelog
run: |
Expand Down
30 changes: 20 additions & 10 deletions DRAFT_CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

# Extension Geoportail __UP_LIBRARY__, version __VERSION__
# Extension Geoportail OpenLayers, version __VERSION__

**__DATE__**
> Release Extension Geoportail __LO_LIBRARY__
> Release Extension Geoportail openLayers
## Summary

Expand All @@ -12,21 +12,26 @@

* [Changed]

- mise à jour de la jsDoc (95cff8206ef2e0fcfb7fee5989d2d74d236b9f9f)

* [Deprecated]

* [Removed]

* [Fixed]

- corrections des erreurs à partir de DeepScan (#288)
- corrections syntaxiques eslint (da275a284a07ddd8e32753eda57ad4ef283d34fb et 306506a2255b2f05558ddcb05210dce39135c804)

* [Security]

---


# Extension Geoportail __UP_LIBRARY__, version __VERSION__
# Extension Geoportail Leaflet, version __VERSION__

**__DATE__**
> Release Extension Geoportail __LO_LIBRARY__
> Release Extension Geoportail leaflet
## Summary

Expand All @@ -42,35 +47,40 @@

* [Fixed]

- corrections des erreurs à partir de DeepScan (#288)
- corrections syntaxiques eslint (da275a284a07ddd8e32753eda57ad4ef283d34fb et 306506a2255b2f05558ddcb05210dce39135c804)

* [Security]

---


# Extension Geoportail Leaflet, version __VERSION__

# Extension Geoportail Itowns, version __VERSION__

**__DATE__**
> Release Extension Geoportail Leaflet
> Release Extension Geoportail itowns
## Summary

Nouveau widget de profil altimétrique par défaut, et correctif mineur

## Changelog

* [Added]

* [Changed]

- nouvel affichage du profil altimétrique par défaut (DISPLAY_PROFILE_BY_DEFAULT)
- mise à jour d'iTowns en version 2.30 (#292)

* [Deprecated]

* [Removed]

* [Fixed]

- correctif sur l'export de la version en mode module
- corrections des erreurs à partir de DeepScan (#288)
- corrections syntaxiques eslint (da275a284a07ddd8e32753eda57ad4ef283d34fb et 306506a2255b2f05558ddcb05210dce39135c804)
- correction de la synchronisation des couches vecteur tuilé avec leurs labels (#290)


* [Security]

Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Extensions Géoportail

[![CeCILL License](https://img.shields.io/badge/licence-CeCILL--B-blue.svg)](https://raw.githubusercontent.com/IGNF/geoportal-extensions/master/LICENCE.md) [![Build Status](https://img.shields.io/travis/IGNF/geoportal-extensions/master.svg)](https://travis-ci.org/IGNF/geoportal-extensions)
[![Build](https://github.com/IGNF/geoportal-extensions/actions/workflows/build.yml/badge.svg)](https://github.com/IGNF/geoportal-extensions/actions/workflows/build.yml)
[![CeCILL License](https://img.shields.io/badge/licence-CeCILL--B-blue.svg)](https://raw.githubusercontent.com/IGNF/geoportal-extensions/master/LICENCE.md)
[![DeepScan grade](https://deepscan.io/api/teams/12425/projects/15469/branches/309621/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=12425&pid=15469&bid=309621)

Ce projet a pour but de fournir des extensions facilitant l'accès aux ressources de la plateforme Géoportail pour les bibliothèques cartographiques Leaflet, OpenLayers (versions 3 et supérieures) et iTowns.

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
46 changes: 23 additions & 23 deletions build/scripts/release/package-itowns.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
{
"main" : "dist/GpPluginItowns-src.js",
"scripts" : {},
"module" : "src/Itowns/index.js",
"dependencies" : {
"proj4" : "2.6.2",
"itowns" : "2.27.0",
"xmldom" : "^0.1.27",
"geoportal-access-lib" : "2.1.6",
"request" : "^2.83.0",
"three" : "0.121.1",
"loglevel" : "1.6.6",
"sortablejs" : "1.8.4"
},
"author" : "IGNF",
"homepage" : "https://geoservices.ign.fr/documentation/utilisation_web/extension-itowns.html",
"bugs" : {},
"directories" : {},
"name" : "geoportal-extensions-itowns",
"files" : [
"dist/",
"src/",
"LICENCE.md",
"README.md",
"package.json"
],
"license" : "CECILL-B",
"version" : "2.3.0",
"bugs" : {},
"repository" : {
"url" : "https://github.com/IGNF/geoportal-extensions.git",
"type" : "git"
},
"description" : "French Geoportal Extensions for iTowns",
"module" : "src/Itowns/index.js",
"dependencies" : {
"three" : "0.124.0",
"loglevel" : "1.6.6",
"sortablejs" : "1.8.4",
"itowns" : "2.30.0",
"geoportal-access-lib" : "2.1.6",
"xmldom" : "^0.1.27",
"request" : "^2.83.0",
"proj4" : "2.7.0"
},
"date" : "12/02/2021",
"main" : "dist/GpPluginItowns-src.js",
"peerDependencies" : {},
"scripts" : {},
"bundleDependencies" : [],
"directories" : {},
"version" : "2.3.1",
"keywords" : [
"geoportail",
"plugin",
"javascript",
"Itowns"
],
"devDependencies" : {},
"peerDependencies" : {},
"date" : "09/12/2020",
"name" : "geoportal-extensions-itowns"
"description" : "French Geoportal Extensions for iTowns",
"author" : "IGNF",
"homepage" : "https://geoservices.ign.fr/documentation/utilisation_web/extension-itowns.html",
"license" : "CECILL-B"
}
50 changes: 25 additions & 25 deletions build/scripts/release/package-openlayers.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
{
"devDependencies" : {},
"name" : "geoportal-extensions-openlayers",
"peerDependencies" : {},
"module" : "src/OpenLayers/index.js",
"directories" : {},
"description" : "French Geoportal Extensions for OpenLayers",
"version" : "3.0.13",
"dependencies" : {
"proj4" : "2.6.0",
"geoportal-access-lib" : "2.1.6",
"xmldom" : "^0.1.27",
"sortablejs" : "1.8.4",
"request" : "^2.83.0",
"ol" : "5.3.0",
"@mapbox/mapbox-gl-style-spec" : "13.11.0",
"loglevel" : "1.6.6",
"eventbusjs" : "0.2.0",
"ol-mapbox-style" : "4.2.1"
},
"keywords" : [
"geoportail",
"plugin",
"javascript",
"OpenLayers"
],
"scripts" : {},
"name" : "geoportal-extensions-openlayers",
"author" : "IGNF",
"bugs" : {},
"description" : "French Geoportal Extensions for OpenLayers",
"homepage" : "https://geoservices.ign.fr/documentation/utilisation_web/extension-openlayers.html",
"date" : "12/02/2021",
"module" : "src/OpenLayers/index.js",
"license" : "CECILL-B",
"main" : "dist/GpPluginOpenLayers-src.js",
"directories" : {},
"repository" : {
"type" : "git",
"url" : "https://github.com/IGNF/geoportal-extensions.git"
},
"dependencies" : {
"ol" : "5.3.0",
"sortablejs" : "1.8.4",
"@mapbox/mapbox-gl-style-spec" : "13.11.0",
"proj4" : "2.6.0",
"loglevel" : "1.6.6",
"xmldom" : "^0.1.27",
"eventbusjs" : "0.2.0",
"geoportal-access-lib" : "2.1.6",
"request" : "^2.83.0",
"ol-mapbox-style" : "4.2.1"
},
"bundleDependencies" : [],
"main" : "dist/GpPluginOpenLayers-src.js",
"scripts" : {},
"bugs" : {},
"peerDependencies" : {},
"files" : [
"dist/",
"src/",
"LICENCE.md",
"README.md",
"package.json"
],
"homepage" : "https://geoservices.ign.fr/documentation/utilisation_web/extension-openlayers.html",
"author" : "IGNF",
"date" : "09/12/2020"
"devDependencies" : {},
"version" : "3.0.14"
}
31 changes: 31 additions & 0 deletions doc/CHANGELOG-leaflet.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [Extension Geoportail Leaflet, version 2.1.7](#extension-geoportail-leaflet-version-217)
* [Summary](#summary-13)
* [Changelog](#changelog-10)
- [Extension Geoportail Leaflet, version 2.1.8](#extension-geoportail-leaflet-version-218)
* [Summary](#summary-14)
* [Changelog](#changelog-11)

<!-- tocstop -->

Expand Down Expand Up @@ -418,3 +421,31 @@ Mise à jour de Leaflet en version 1.7.1
* [Security]

---
# Extension Geoportail Leaflet, version 2.1.8

**12/02/2021**
> Release Extension Geoportail Leaflet
## Summary

Nouveau widget de profil altimétrique par défaut, et correctif mineur

## Changelog

* [Added]

* [Changed]

- nouvel affichage du profil altimétrique par défaut (DISPLAY_PROFILE_BY_DEFAULT)

* [Deprecated]

* [Removed]

* [Fixed]

- correctif sur l'export de la version en mode module

* [Security]

---
2 changes: 1 addition & 1 deletion doc/README-itowns.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ Gp.Services.getConfig(...)

### Versions d'iTowns supportées

La dernière version de l'extension Géoportail pour iTowns peut s'utiliser avec la **version 2.15.3** d'iTowns. [Cliquer ici](https://github.com/iTowns/itowns/releases/) pour télécharger directement la version 2.15.3 de la librairie iTowns. [Cliquer ici](https://www.npmjs.com/package/itowns?activeTab=readme) pour accéder à la page du package npm iTowns.
La dernière version de l'extension Géoportail pour iTowns peut s'utiliser avec la **version 2.27.0** d'iTowns. [Cliquer ici](https://github.com/iTowns/itowns/releases/) pour télécharger directement la version 2.27.0 de la librairie iTowns. [Cliquer ici](https://www.npmjs.com/package/itowns?activeTab=readme) pour accéder à la page du package npm iTowns.


### Navigateurs supportés
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "geoportal-extensions",
"description": "French Geoportal Extensions for OpenLayers, Leaflet and iTowns libraries",
"version": "2.3.2",
"date": "12/02/2021",
"version": "2.3.3",
"date": "30/03/2021",
"leafletExtName": "French Geoportal Extension for Leaflet",
"leafletExtVersion": "2.1.8",
"olExtName": "French Geoportal Extension for OpenLayers",
"olExtVersion": "3.0.14",
"itownsExtName": "French Geoportal Extension for Itowns",
"itownsExtVersion": "2.3.1",
"itownsExtVersion": "2.3.2",
"main": "dist/leaflet/GpPluginLeaflet.js, dist/openlayers/GpPluginOpenLayers.js, dist/itowns/GpPluginItowns.js",
"module": "src/Leaflet/index.js, src/OpenLayers/index.js, src/Itowns/index.js",
"directories": {},
Expand Down Expand Up @@ -67,17 +67,17 @@
"@mapbox/mapbox-gl-style-spec": "13.11.0",
"eventbusjs": "0.2.0",
"geoportal-access-lib": "2.1.7",
"itowns": "2.27.0",
"itowns": "2.30.0",
"leaflet": "1.7.1",
"leaflet-draw": "1.0.4",
"loglevel": "^1.6.7",
"markdown-toc": "^1.2.0",
"ol": "5.3.0",
"ol-mapbox-style": "4.2.1",
"proj4": "^2.6.2",
"proj4": "2.7.0",
"proj4leaflet": "1.0.2",
"sortablejs": "1.8.4",
"three": "^0.121.1",
"three": "0.124.0",
"whatwg-fetch": "3.0.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/Common/Controls/MousePositionDOM.js
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ var MousePositionDOM = {
*/
GPdisplayCoords : function (coordinate) {
// Compute coords in case of cursor position (desktop)
if (coordinate && coordinate != null) {
if (coordinate) {
var labelLon = document.getElementById(this._addUID("GPmousePositionLonLabel"));
var labelLat = document.getElementById(this._addUID("GPmousePositionLatLabel"));

Expand Down Expand Up @@ -911,7 +911,7 @@ var MousePositionDOM = {
var minThreshold = noDataValue - noDataValueTolerance;

// Compute coords in case of cursor position (desktop)
if (coordinate && coordinate != null) {
if (coordinate) {
// If no altitude panel, don't call altitude request
if (document.getElementById(this._addUID("GPmousePositionAltitude"))) {
altitudeTimeout = setTimeout(function () {
Expand Down
Loading

0 comments on commit d4fbc99

Please sign in to comment.