Skip to content

Commit

Permalink
Merge branch 'release-ol-3.2.12'
Browse files Browse the repository at this point in the history
  • Loading branch information
lowzonenose committed Apr 29, 2022
2 parents 18dfc73 + d8c53df commit ff608cf
Show file tree
Hide file tree
Showing 8 changed files with 83 additions and 40 deletions.
9 changes: 5 additions & 4 deletions DRAFT_CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@



# Extension Geoportail OpenLayers, version __VERSION__

**__DATE__**
Expand All @@ -11,8 +12,6 @@

* [Added]

- Ajout du menu des couleurs et de la taille des pictogramme dans l'outil de dessin

* [Changed]

* [Deprecated]
Expand All @@ -21,8 +20,10 @@

* [Fixed]

- Amélioration du rendu vecteur des formats GPX et GeoJSON
- Gestion du nom d'une couche importée dans le gestionnaire et dans l'outil de dessin
- Permettre la saisie sous la tooltip sur les outils de mesures
- Correctif du style des elements en cours d'édition lors de l'export / enregistrement des croquis sur l'outil de dessin
- Desactivation des interactions à la fermeture de l'outil de dessin [#323](https://github.com/IGNF/geoportal-extensions/issues/323)
- Nettoyage des tooltips des outils de mesures

* [Security]

Expand Down
Binary file not shown.
60 changes: 30 additions & 30 deletions build/scripts/release/package-openlayers.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
{
"module" : "src/OpenLayers/index.js",
"repository" : {
"type" : "git",
"url" : "https://github.com/IGNF/geoportal-extensions.git"
},
"author" : "IGNF",
"description" : "French Geoportal Extensions for OpenLayers",
"dependencies" : {
"node-fetch" : "^2.6.1",
"@mapbox/mapbox-gl-style-spec" : "13.20.1",
"sortablejs" : "1.14.0",
"loglevel" : "1.6.6",
"ol-mapbox-style" : "6.7.0",
"ol" : "6.9.0",
"proj4" : "2.7.5",
"xmldom" : "^0.1.27",
"geoportal-access-lib" : "3.1.0",
"eventbusjs" : "0.2.0"
},
"main" : "dist/GpPluginOpenLayers-src.js",
"name" : "geoportal-extensions-openlayers",
"bundleDependencies" : [],
"keywords" : [
"geoportail",
"plugin",
"javascript",
"OpenLayers"
],
"homepage" : "https://geoservices.ign.fr/documentation/utilisation_web/extension-openlayers.html",
"date" : "29/04/2022",
"version" : "3.2.12",
"description" : "French Geoportal Extensions for OpenLayers",
"module" : "src/OpenLayers/index.js",
"devDependencies" : {},
"author" : "IGNF",
"main" : "dist/GpPluginOpenLayers-src.js",
"repository" : {
"url" : "https://github.com/IGNF/geoportal-extensions.git",
"type" : "git"
},
"license" : "CECILL-B",
"scripts" : {},
"files" : [
"dist/",
"src/",
"LICENCE.md",
"README.md",
"package.json"
],
"bundleDependencies" : [],
"date" : "31/03/2022",
"devDependencies" : {},
"bugs" : {},
"peerDependencies" : {},
"directories" : {},
"name" : "geoportal-extensions-openlayers",
"scripts" : {},
"version" : "3.2.11",
"license" : "CECILL-B"
"bugs" : {},
"dependencies" : {
"@mapbox/mapbox-gl-style-spec" : "13.20.1",
"ol-mapbox-style" : "6.7.0",
"xmldom" : "^0.1.27",
"ol" : "6.9.0",
"loglevel" : "1.6.6",
"geoportal-access-lib" : "3.1.0",
"sortablejs" : "1.14.0",
"node-fetch" : "^2.6.1",
"proj4" : "2.7.5",
"eventbusjs" : "0.2.0"
},
"homepage" : "https://geoservices.ign.fr/documentation/utilisation_web/extension-openlayers.html",
"directories" : {}
}
30 changes: 30 additions & 0 deletions doc/CHANGELOG-openlayers.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [Extension Geoportail OpenLayers, version 3.2.10](#extension-geoportail-openlayers-version-3210)
* [Summary](#summary-34)
* [Changelog](#changelog-31)
- [Extension Geoportail OpenLayers, version 3.2.11](#extension-geoportail-openlayers-version-3211)
* [Summary](#summary-35)
* [Changelog](#changelog-32)

<!-- tocstop -->

Expand Down Expand Up @@ -1290,3 +1293,30 @@ Evolution de la documentation et correction du layerswitcher
* [Security]
---
# Extension Geoportail OpenLayers, version 3.2.11
**31/03/2022**
> Release Extension Geoportail openlayers
## Summary
## Changelog
* [Added]
- Ajout du menu des couleurs et de la taille des pictogramme dans l'outil de dessin
* [Changed]
* [Deprecated]
* [Removed]
* [Fixed]
- Amélioration du rendu vecteur des formats GPX et GeoJSON
- Gestion du nom d'une couche importée dans le gestionnaire et dans l'outil de dessin
* [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": "2.6.12",
"date": "31/03/2022",
"version": "2.6.13",
"date": "29/04/2022",
"leafletExtName": "French Geoportal Extension for Leaflet",
"leafletExtVersion": "2.2.4",
"olExtName": "French Geoportal Extension for OpenLayers",
"olExtVersion": "3.2.11",
"olExtVersion": "3.2.12",
"itownsExtName": "French Geoportal Extension for Itowns",
"itownsExtVersion": "2.3.6",
"main": "dist/leaflet/GpPluginLeaflet.js, dist/openlayers/GpPluginOpenLayers.js, dist/itowns/GpPluginItowns.js",
Expand Down
12 changes: 10 additions & 2 deletions src/OpenLayers/Controls/Drawing.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,9 @@ var Drawing = (function (Control) {
return result;
}

// on invalide les features...
this.featuresCollectionSelected.clear();

var ClassName = null;
switch (this.getExportFormat()) {
case "KML":
Expand Down Expand Up @@ -717,6 +720,7 @@ var Drawing = (function (Control) {

this.interactionCurrent = null;
this.interactionSelectEdit = null;
this.featuresCollectionSelected = null;

this.stylingOvl = null;
this.popupOvl = null;
Expand Down Expand Up @@ -1860,11 +1864,15 @@ var Drawing = (function (Control) {
break;
case this._addUID("drawing-tool-edit"):
if (context.dtOptions["edit"].active) {
this.featuresCollectionSelected = new Collection();
context.interactionSelectEdit = new SelectInteraction({
condition : eventSingleClick,
layers : [this.layer]
layers : [this.layer],
features : this.featuresCollectionSelected
});
context.interactionSelectEdit.on("select", (e) => {
// ...
});

context.interactionSelectEdit.setProperties({
name : "Drawing",
source : context
Expand Down
4 changes: 3 additions & 1 deletion src/OpenLayers/Controls/Measures/Measures.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ var Measures = {

var mapContainer = map.getTargetElement();
// au cas où il y'aurait plusieurs container de carte !
var overlays = mapContainer.getElementsByClassName("ol-overlaycontainer-stopevent");
var overlays = mapContainer.getElementsByClassName("ol-overlaycontainer");
for (var k = 0; k < overlays.length; k++) {
var nodes = overlays[k];
var len = nodes.children.length;
Expand Down Expand Up @@ -339,6 +339,7 @@ var Measures = {

this.measureTooltip = new Overlay({
element : this.measureTooltipElement,
stopEvent : false,
offset : [0, -15],
positioning : "bottom-center"
});
Expand All @@ -362,6 +363,7 @@ var Measures = {

this.helpTooltip = new Overlay({
element : this.helpTooltipElement,
stopEvent : false,
offset : [15, 0],
positioning : "center-left"
});
Expand Down
2 changes: 2 additions & 0 deletions src/OpenLayers/Controls/Utils/Interactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ var Interactions = {
}
}
}
} else {
interactions[i].setActive(false);
}
}
}
Expand Down

0 comments on commit ff608cf

Please sign in to comment.