Skip to content

Commit

Permalink
release ol-3.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
elias75015 committed Jun 5, 2024
2 parents 4d6f23d + 889ecfa commit a7af2ac
Show file tree
Hide file tree
Showing 10 changed files with 63 additions and 21 deletions.
22 changes: 15 additions & 7 deletions DRAFT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,25 @@
## Summary

Correction HOTFIX sur l'affichage de couches définies sur des niveaux de zooms restreints, et amélioration du SearchEngine.

## Changelog

* [Added]

* [Changed]

- recherche avancée améliorée sur la ressource parcelle cadastrale (#379)

* [Deprecated]

* [Removed]

* [Fixed]

- correction du paramétrage des ressources à utiliser avec le SearchEngine (#377)
- correction de la lecture de la définition des tileMatrices liées aux nouveaux TMS_LINK (ff1ca9fbff0aba98629cd307b6b40e54b7b3386a)

* [Security]

---
Expand All @@ -31,12 +38,16 @@
## Summary

Corrections multiples principalement sur le searchEngine

## Changelog

* [Added]

* [Changed]

- recherche avancée améliorée sur la ressource parcelle cadastrale (#379)

* [Deprecated]

* [Removed]
Expand All @@ -46,21 +57,22 @@
- widget itineraire utilise ressource bdtopo-valhalla dans le cas d'un itinéraire pieton en mode fastest (92439bc421cc5f6ee1f10e069f2aa468e2b971b6)
- Correction du logger par définiton de la variable process (e0e3b9b5ad3e1f8c92086891564f04f792e24280)
- recherche avancée : correction du test sur le param query

- correction du paramétrage des ressources à utiliser avec le SearchEngine (#377)
- corrige l'affichage de couches en lambert93 (#380)

* [Security]

---



# Extension Geoplateforme Itowns, version __VERSION__

**__DATE__**
> Release Extension Geoplateforme itowns
## Summary

Corrections mineures sur le Helper et les exemples

## Changelog

* [Added]
Expand All @@ -73,10 +85,6 @@ Corrections mineures sur le Helper et les exemples

* [Fixed]

- corrige couche json itowns, mauvaise url (77c6eb1b75c68a348c215c0fb0f2ee86cc80bd52)
- Correction du logger par définiton de la variable process (e0e3b9b5ad3e1f8c92086891564f04f792e24280)
- mise à jour bibliothèque d'accès en version 3.4.2

* [Security]

---
4 changes: 2 additions & 2 deletions build/scripts/release/package-openlayers.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"javascript",
"OpenLayers"
],
"version" : "3.4.3",
"version" : "3.4.4",
"types" : "src/OpenLayers/index.d.ts",
"license" : "CECILL-B",
"date" : "14/05/2024",
"date" : "05/06/2024",
"dependencies" : {
"loglevel" : "1.6.6",
"@mapbox/mapbox-gl-style-spec" : "13.20.1",
Expand Down
31 changes: 31 additions & 0 deletions doc/CHANGELOG-itowns.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [Extension Geoplateforme Itowns, version 2.5.0-beta4](#extension-geoplateforme-itowns-version-250-beta4)
* [Summary](#summary-33)
* [Changelog](#changelog-32)
- [Extension Geoplateforme Itowns, version 2.5.1](#extension-geoplateforme-itowns-version-251)
* [Summary](#summary-34)
* [Changelog](#changelog-33)

<!-- tocstop -->

Expand Down Expand Up @@ -1026,3 +1029,31 @@ Ajout possible de couches à accès restreint via une fichier de configuration c
* [Security]

---
# Extension Geoplateforme Itowns, version 2.5.1

**16/05/2024**
> Release Extension Geoplateforme itowns
## Summary

Corrections mineures sur le Helper et les exemples

## Changelog

* [Added]

* [Changed]

* [Deprecated]

* [Removed]

* [Fixed]

- corrige couche json itowns, mauvaise url (77c6eb1b75c68a348c215c0fb0f2ee86cc80bd52)
- Correction du logger par définiton de la variable process (e0e3b9b5ad3e1f8c92086891564f04f792e24280)
- mise à jour bibliothèque d'accès en version 3.4.2

* [Security]

---
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "geoportal-extensions",
"description": "French Geoportal Extensions for OpenLayers, Leaflet and iTowns libraries",
"version": "3.0.3",
"date": "16/05/2024",
"version": "3.0.4",
"date": "05/06/2024",
"leafletExtName": "French Geoportal Extension for Leaflet",
"leafletExtVersion": "2.4.0",
"olExtName": "French Geoportal Extension for OpenLayers",
"olExtVersion": "3.4.3",
"olExtVersion": "3.4.4",
"itownsExtName": "French Geoportal Extension for Itowns",
"itownsExtVersion": "2.5.1",
"main": "dist/leaflet/GpPluginLeaflet.js, dist/openlayers/GpPluginOpenLayers.js, dist/itowns/GpPluginItowns.js",
Expand Down
2 changes: 1 addition & 1 deletion src/Common/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ var Utils = {
* @param {Boolean} replace - replace destination value by source if exists or not (true by default)
*/
mergeParams : function (dest, source, replace) {
if (!dest || !source) {
if (typeof dest === "undefined" || typeof source === "undefined") {
return;
}
if (typeof replace === "undefined") {
Expand Down
4 changes: 0 additions & 4 deletions src/Common/Utils/SearchEngineUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ var SearchEngineUtils = {
name : "municipalitycode",
title : "Code commune (INSEE)",
description : "Code INSEE de la commune : 3 chiffres (ex: 067)"
}, {
name : "city",
title : "Nom commune",
description : "Nom de la commune"
}, {
name : "oldmunicipalitycode",
title : "Commune absorbée",
Expand Down
2 changes: 1 addition & 1 deletion src/Leaflet/CRS/EPSG2154.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ var EPSG2154 = {
var resolutions = [];
// resolutions issues de la configuration
if (Config.isConfigLoaded()) {
var o = Config.configuration.getTMSConf("LAMB93");
var o = Config.configuration.getTMSConf("LAMB93_5cm");
resolutions = o.nativeResolutions;
}

Expand Down
4 changes: 4 additions & 0 deletions src/Leaflet/Controls/SearchEngine.js
Original file line number Diff line number Diff line change
Expand Up @@ -1237,6 +1237,10 @@ var SearchEngine = L.Control.extend(/** @lends L.geoportalControl.SearchEngine.p
for (var i = 0; i < data.length; i++) {
var filter = data[i];
if (filter.value) {
// On passe la section en majuscule car le service est caseSensitive
if (filter.key === "section") {
filter.value = filter.value.toUpperCase();
}
_filterOptions[filter.key] = filter.value;
}
}
Expand Down
7 changes: 5 additions & 2 deletions src/OpenLayers/Controls/SearchEngine.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ var SearchEngine = (function (Control) {
collapsed : true,
zoomTo : "",
resources : {
geocode : "",
geocode : [],
autocomplete : []
},
displayAdvancedSearch : true,
Expand All @@ -227,7 +227,7 @@ var SearchEngine = (function (Control) {
// merge with user options
Utils.mergeParams(this.options, options);
if (this.options.resources.geocode === "") {
this.options.resources.geocode = "address,poi";
this.options.resources.geocode = ["PositionOfInterest", "StreetAddress"];
}
if (this.options.resources.autocomplete.length === 0) {
this.options.resources.autocomplete = ["PositionOfInterest", "StreetAddress"];
Expand Down Expand Up @@ -1463,6 +1463,9 @@ var SearchEngine = (function (Control) {
for (var i = 0; i < data.length; i++) {
var filter = data[i];
if (filter.value) {
if (filter.key === "section") {
filter.value = filter.value.toUpperCase();
}
_filterOptions[filter.key] = filter.value;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/OpenLayers/Layers/SourceWMTS.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ var SourceWMTS = (function (WMTSExtended) {
tileGrid : new WMTSTileGrid({
resolutions : wmtsParams.nativeResolutions,
matrixIds : wmtsParams.matrixIds,
origin : [wmtsParams.tileMatrices[0].topLeftCorner.x, wmtsParams.tileMatrices[0].topLeftCorner.y]
origin : [Object.values(wmtsParams.tileMatrices)[0].topLeftCorner.x, Object.values(wmtsParams.tileMatrices)[0].topLeftCorner.y]
})
};

Expand Down

0 comments on commit a7af2ac

Please sign in to comment.