Skip to content

Commit

Permalink
release ext leaflet 2.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
elias75015 committed Jun 12, 2023
2 parents e75d660 + c8c989b commit 4f00d86
Show file tree
Hide file tree
Showing 15 changed files with 324 additions and 17 deletions.
10 changes: 5 additions & 5 deletions DRAFT_CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@






# Extension Geoportail OpenLayers, version __VERSION__

**__DATE__**
> Release Extension Geoportail openlayers
## Summary

- Ajout d'exemples avec l'appel de *Gp.Services.getConfig()*

## Changelog

* [Added]
Expand All @@ -36,7 +34,7 @@
## Summary

leaflet 2.3.1
- Ajout d'exemples avec l'appel de *Gp.Services.getConfig()*

## Changelog

Expand All @@ -50,6 +48,8 @@ leaflet 2.3.1

* [Fixed]

- Fix sur les exemples avec un appel de *Gp.Services.getConfig()* (59efde637b423f835f4d50175c2dd83849faf5d1)

* [Security]

---
Expand Down
25 changes: 25 additions & 0 deletions doc/CHANGELOG-itowns.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* [Changelog](#changelog-25)
* [Avant :](#avant-)
* [Maintenant :](#maintenant-)
- [Extension Geoportail Itowns, version 2.4.1](#extension-geoportail-itowns-version-241)
* [Summary](#summary-27)
* [Changelog](#changelog-26)

<!-- tocstop -->

Expand Down Expand Up @@ -829,3 +832,25 @@ globeView.addLayer(new Gp.itownsExtended.layer.GeoportalWMTS({
* [Security]

---
# Extension Geoportail Itowns, version 2.4.1

**07/06/2023**
> Release Extension Geoportail itowns
## Summary

## Changelog

* [Added]

* [Changed]

* [Deprecated]

* [Removed]

* [Fixed]

* [Security]

---
27 changes: 27 additions & 0 deletions doc/CHANGELOG-leaflet.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [Extension Geoportail Leaflet, version 2.3.0](#extension-geoportail-leaflet-version-230)
* [Summary](#summary-26)
* [Changelog](#changelog-23)
* [Avant :](#avant-)
* [Maintenant :](#maintenant-)
- [Extension Geoportail Leaflet, version 2.3.1](#extension-geoportail-leaflet-version-231)
* [Summary](#summary-27)
* [Changelog](#changelog-24)

<!-- tocstop -->

Expand Down Expand Up @@ -905,3 +910,25 @@ var maCoucheGeoportail = L.geoportalLayer.WMTS({
* [Security]

---
# Extension Geoportail Leaflet, version 2.3.1

**07/06/2023**
> Release Extension Geoportail leaflet

## Summary

## Changelog

* [Added]

* [Changed]

* [Deprecated]

* [Removed]

* [Fixed]

* [Security]

---
25 changes: 25 additions & 0 deletions doc/CHANGELOG-openlayers.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* [Changelog](#changelog-43)
* [Avant :](#avant-)
* [Maintenant :](#maintenant-)
- [Extension Geoportail OpenLayers, version 3.3.1](#extension-geoportail-openlayers-version-331)
* [Summary](#summary-47)
* [Changelog](#changelog-44)

<!-- tocstop -->

Expand Down Expand Up @@ -1799,3 +1802,25 @@ new ol.layer.Tile({
* [Security]
---
# Extension Geoportail OpenLayers, version 3.3.1
**07/06/2023**
> Release Extension Geoportail openlayers
## Summary
## Changelog
* [Added]
* [Changed]
* [Deprecated]
* [Removed]
* [Fixed]
* [Security]
---
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "geoportal-extensions",
"description": "French Geoportal Extensions for OpenLayers, Leaflet and iTowns libraries",
"version": "2.8.1",
"date": "07/06/2023",
"version": "2.8.2",
"date": "12/06/2023",
"leafletExtName": "French Geoportal Extension for Leaflet",
"leafletExtVersion": "2.3.1",
"leafletExtVersion": "2.3.2",
"olExtName": "French Geoportal Extension for OpenLayers",
"olExtVersion": "3.3.1",
"itownsExtName": "French Geoportal Extension for Itowns",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{{#extend "layout-leaflet-sample-bundle-getconfig"}}

{{#content "head"}}
<title>Sample Leaflet</title>
{{/content}}

{{#content "style"}}
<style>
div#map {
width: 100%;
height: 500px;
}
</style>
{{/content}}

{{#content "body"}}
<h2>Ajout de tous les widgets</h2>
<!-- map -->
<div id="map"></div>
{{/content}}

{{#content "js"}}
// on cache l'image de chargement du Géoportail.
document.getElementById("map").style.backgroundImage = "none";

// Création de la map
var layer = L.geoportalLayer.WMTS({
layer : "ORTHOIMAGERY.ORTHOPHOTOS"
});

var map = L.map('map', {
zoom : 2,
center : L.latLng(48, 2)
});

layer.addTo(map);

var iso = L.geoportalControl.Isocurve();
map.addControl(iso);
var layerSwitcher = L.geoportalControl.LayerSwitcher();
map.addControl(layerSwitcher);
var mp = L.geoportalControl.MousePosition();
map.addControl(mp);
var route = L.geoportalControl.Route();
map.addControl(route);
var reverse = L.geoportalControl.ReverseGeocode();
map.addControl(reverse);
var search = L.geoportalControl.SearchEngine();
map.addControl(search);
var measureProfil = L.geoportalControl.ElevationPath();
map.addControl(measureProfil);
{{/content}}
{{/extend}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{{#extend "ol-sample-bundle-getconfig-layout"}}

{{#content "head"}}
<title>Sample openlayers - multikeys</title>
{{/content}}

{{#content "style"}}
<style>
div#map {
width: 100%;
height: 500px;
}
</style>
{{/content}}

{{#content "body"}}
<h2>Ajout de tous les widgets</h2>
<!-- map -->
<div id="map">
</div>
{{/content}}

{{#content "js"}}
// on cache l'image de chargement du Géoportail.
document.getElementById("map").style.backgroundImage = "none";

// Création de la map
var map = new ol.Map({
target : "map",
layers : [
new ol.layer.GeoportalWMTS({
layer : "GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2"
}),
new ol.layer.GeoportalWMTS({
layer : "GEOGRAPHICALGRIDSYSTEMS.ETATMAJOR40"
}),
new ol.layer.GeoportalWMTS({
layer : "LIMITES_ADMINISTRATIVES_EXPRESS.LATEST"
})
],
view : new ol.View({
center : [288074.8449901076, 6247982.515792289],
zoom : 13
})
});

var drawing = new ol.control.Drawing();
map.addControl(drawing);
var iso = new ol.control.Isocurve();
map.addControl(iso);
var layerImport = new ol.control.LayerImport();
map.addControl(layerImport);
var layerSwitcher = new ol.control.LayerSwitcher();
map.addControl(layerSwitcher);
var mp = new ol.control.GeoportalMousePosition();
map.addControl(mp);
var route = new ol.control.Route();
map.addControl(route);
var reverse = new ol.control.ReverseGeocode({});
map.addControl(reverse);
var search = new ol.control.SearchEngine({});
map.addControl(search);
var feature = new ol.control.GetFeatureInfo({});
map.addControl(feature);

var measureLength = new ol.control.MeasureLength();
map.addControl(measureLength);
var measureArea = new ol.control.MeasureArea();
map.addControl(measureArea);
var measureAzimuth = new ol.control.MeasureAzimuth();
map.addControl(measureAzimuth);
var measureProfil = new ol.control.ElevationPath();
map.addControl(measureProfil);

var attributions = new ol.control.GeoportalAttribution();
map.addControl(attributions);
{{/content}}
{{/extend}}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h2>Ajout de tous les widgets</h2>
{{#content "js"}}
<script type="text/javascript">

var createMap = function () {
window.onload = function () {
// on cache l'image de chargement du Géoportail.
document.getElementById("map").style.backgroundImage = "none";

Expand Down Expand Up @@ -79,13 +79,6 @@ <h2>Ajout de tous les widgets</h2>
map.addControl(attributions);
};

Gp.Services.getConfig({
// callbackSuffix : '',
apiKey: "{{ apikey }}",
timeOut: 20000,
onSuccess: createMap
});

</script>
{{/content}}
{{/extend}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!DOCTYPE html>
<html>
<head>
{{#extend "partials-common-head"}}
{{/extend}}
{{#extend "partials-leaflet-common-head"}}
{{/extend}}
{{#block "vendor"}}
{{/block}}

{{#extend "partials-leaflet-bundle-getconfig-head"}}
{{/extend}}

{{#block "head"}}
{{/block}}
{{#block "style"}}
{{/block}}

</head>
<body>
<h1>Extension Géoportail pour Leaflet (mode bundle)</h1>

{{#block "body"}}
{{/block}}

<script>
var createMap = function () {
{{#block "js"}}
{{/block}}
};
Gp.Services.getConfig({
// callbackSuffix : '',
apiKey: "{{ apikey }}",
timeOut: 20000,
onSuccess: createMap,
onFailure: function (e) {
console.error(e);
}
});
</script>
</body>
</html>
Loading

0 comments on commit 4f00d86

Please sign in to comment.