-
Notifications
You must be signed in to change notification settings - Fork 4
feat(panoramax) : ✨ nouveau widget Panoramax #492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
lowzonenose
wants to merge
46
commits into
main
Choose a base branch
from
feature/panoramax
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
bb96bfa
feat: Initialisation du nouveau widget Panoramax
lowzonenose 8c9abe0
feat: ajout du support pour le visualiseur de photos Panoramax et amé…
lowzonenose 465cbd8
feat: ajout de styles css et harmoniser la jsdoc
lowzonenose eec34c5
feat: ajout de nouvelles options et améliorations pour le widget Pano…
lowzonenose 4d03b53
Merge branch 'main' into feature/panoramax
lowzonenose 09815fe
feat: ajout de nouvelles options de style et de fond pour le widget P…
lowzonenose bd0c146
feat: ajout d'une fenêtre de visualisation pour le widget Panoramax, …
lowzonenose 685ee4c
feat: amélioration du widget Panoramax avec des options de taille et …
lowzonenose 43f1bba
feat: ajout de la gestion des boutons dans le widget Panoramax, améli…
lowzonenose c75850d
feat: ajout d'options expérimentales pour la cible DOM des panneaux d…
lowzonenose afd8069
feat: ajout de la licence Panoramax, mise à jour du changelog et du f…
lowzonenose 48f30b6
feat: meilleur gestion des couches Mapbox dans le widget Panoramax, a…
lowzonenose 2aa69af
feat: ajout d'un panneau de filtres dans le widget Panoramax, incluan…
lowzonenose 473bcd2
feat: mise à jour des dépendances et amélioration des filtres de date…
lowzonenose 5a1996b
feat: ajout de la gestion des groupes de couches dans le widget Panor…
lowzonenose 252b87f
feat: amélioration des performances avec la mise en place d'une fonct…
lowzonenose fbadfb0
feat: ajout de la gestion des filtres de dates dans le widget Panoram…
lowzonenose 0c775a7
fix(layerImport): suppression de l'id du style pour éviter les problè…
lowzonenose e8b109b
Update src/packages/Controls/Panoramax/Panoramax.js
lowzonenose 5b5e6ab
feat(Panoramax): correctifs suggestions
lowzonenose e270267
Update src/packages/Controls/Panoramax/PanoramaxDOM.js
lowzonenose c617928
Update src/packages/Controls/Panoramax/Panoramax.js
lowzonenose b8e3e78
Update src/packages/Controls/Panoramax/PanoramaxDOM.js
lowzonenose ceb0308
Update src/packages/Controls/Panoramax/PanoramaxDOM.js
lowzonenose 2261054
feat(Panoramax): ajout de la gestion des styles et des filtres dans l…
lowzonenose 29b63f4
Merge branch 'main' into feature/panoramax
lowzonenose d1bcae9
Merge branch 'main' into feature/panoramax
lowzonenose 6465e31
feat(Panoramax): amélioration du viewer photo avec ajout de widgets p…
lowzonenose 55b4421
feat(Panoramax): mode fullscreen
lowzonenose c058330
feat(Panoramax): ajout de la légende des photos
lowzonenose 586469f
feat(Panoramax): ajout d'un panneau d'options et refactorisation des …
lowzonenose 9c6649c
feat(Panoramax): ajout d'un bouton de réinitialisation des filtres et…
lowzonenose e03c529
feat(Panoramax): ajustement de la position des panneaux en bas de l'é…
lowzonenose 40d8639
feat(Panoramax): todo/fixme
lowzonenose 53ebb67
feat(Panoramax): ajout de la taille "fullscreen-map" pour la fenêtre …
lowzonenose d9bc76a
feat(Panoramax): ajout de la méthode hideWidgetPictureMetadata pour m…
lowzonenose 2421b65
feat(Panoramax): amélioration des css sur les options de filtres
lowzonenose 21ce61b
fix(Panoramax): mode fullscreen-map
lowzonenose ef6b739
fix(panoramax): réinitialiser tous les filtres à leur état initial
lowzonenose 5663207
feat(Panoramax): ajout de styles pour le header et amélioration de la…
lowzonenose 1b3dcfd
fix(Panoramax): activer le panneau d'options et gérer les événements …
lowzonenose 6d3f9c9
fix(Panoramax): ajustements divers sur les options et le style des co…
lowzonenose 4b22e43
feat(Panoramax): build bundle / modules avec lib externe
lowzonenose 8a0c3ad
doc(Panoramax): mise à jour des types et des exemples dans la documen…
lowzonenose 7e4fbff
Merge branch 'main' into feature/panoramax
lowzonenose e49abb8
Merge branch 'main' into feature/panoramax
lowzonenose File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| /*! | ||
| * @overview Panoramax - a web JS viewer library which displays pictures and sequences from a Panoramax server | ||
| * @copyright Copyright (c) 2022 Adrien Pavie | ||
| * @license Licensed under MIT license | ||
| * See https://gitlab.com/panoramax/clients/web-viewer/-/raw/develop/LICENSE | ||
| * @version {__VERSION__} | ||
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
109 changes: 109 additions & 0 deletions
109
samples-src/pages/tests/Panoramax/pages-ol-panoramax-modules-options-dsfr.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,109 @@ | ||
| {{#extend "ol-sample-modules-dsfr-layout"}} | ||
|
|
||
| {{#content "vendor"}} | ||
| <link rel="stylesheet" href="{{ resources }}/vendor/panoramax/v4.4.0/photoviewer.css" /> | ||
| <script src="{{ resources }}/vendor/panoramax/v4.4.0/photoviewer.js"></script> | ||
| <link rel="stylesheet" href="{{ baseurl }}/dist/modules/GpfExtOlCatalog.css" /> | ||
| <script src="{{ baseurl }}/dist/modules/GpfExtOlCatalog.js"></script> | ||
| <link rel="stylesheet" href="{{ baseurl }}/dist/modules/GpfExtOlLayerSwitcher.css" /> | ||
| <script src="{{ baseurl }}/dist/modules/GpfExtOlLayerSwitcher.js"></script> | ||
| <link rel="stylesheet" href="{{ baseurl }}/dist/modules/GpfExtOlPanoramax.css" /> | ||
| <script src="{{ baseurl }}/dist/modules/GpfExtOlPanoramax.js"></script> | ||
| <script src="{{ baseurl }}/dist/modules/GpfExtOlLayers.js"></script> | ||
| {{/content}} | ||
|
|
||
| {{#content "head"}} | ||
| <title>Sample openlayers Panoramax</title> | ||
| {{/content}} | ||
|
|
||
| {{#content "style"}} | ||
| <style> | ||
| div#map { | ||
| width: 100vw; | ||
| height: calc(100vh - 200px); | ||
| background-image:url("{{ resources }}/geoportail-waiting.gif"); | ||
| background-position:center center; | ||
| background-repeat:no-repeat; | ||
| } | ||
|
|
||
| </style> | ||
| {{/content}} | ||
|
|
||
| {{#content "body"}} | ||
| <h2>Ajout du widget Panoramax, avec les options par défaut</h2> | ||
| <!-- map --> | ||
| <div id="map"> | ||
| </div> | ||
| {{/content}} | ||
|
|
||
| {{#content "js"}} | ||
| <script> | ||
| if (window.Gp) { | ||
| localStorage.setItem("loglevel", "debug"); | ||
| localStorage.setItem("loglevel:panoramax", "debug"); | ||
| // activation des loggers | ||
| Gp.Logger.enableAll(); | ||
| } | ||
| var map; | ||
| var panoramax; | ||
|
|
||
| var createMap = function () { | ||
| document.getElementById('map').style.backgroundImage = 'none'; | ||
|
|
||
| // Création de la map | ||
| map = new ol.Map({ | ||
| target : "map", | ||
| view : new ol.View({ | ||
| center : [288074.8449901076, 6247982.515792289], | ||
| zoom : 18 | ||
| }) | ||
| }); | ||
|
|
||
| var gpMaps = new ol.layer.GeoportalWMTS({ | ||
| layer: "GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2" | ||
| }); | ||
| map.addLayer(gpMaps); | ||
|
|
||
| // Ajout du contrôle de gestion des couches | ||
| var layerSwitcher = new ol.control.LayerSwitcher({ | ||
| options : { | ||
| collapsed: true, | ||
| position: "top-left", | ||
| panel: true, | ||
| counter: true | ||
| } | ||
| }); | ||
| map.addControl(layerSwitcher); | ||
|
|
||
| var catalog = new ol.control.Catalog({ | ||
| position: "top-left", | ||
| collapsed : true | ||
| }); | ||
| map.addControl(catalog); | ||
|
|
||
| // Ajout du contrôle Panoramax | ||
| var options = { | ||
| collapsed: false, | ||
| panel : true | ||
| }; | ||
| panoramax = new ol.control.Panoramax(options); | ||
| // Gestion de l'événement d'ouverture du formulaire de Panoramax | ||
| // mais, une seule fois ! | ||
| panoramax.once("pnx:opened", function () { | ||
| console.log("Panoramax event opened !"); | ||
| }); | ||
| map.addControl(panoramax); | ||
| }; | ||
| Gp.Services.getConfig({ | ||
| customConfigFile : "{{ configurl }}", | ||
| callbackSuffix : "", | ||
| // apiKey: "{{ apikey }}", | ||
| timeOut : 20000, | ||
| onSuccess : createMap, | ||
| onFailure : (e) => { | ||
| console.error(e); | ||
| } | ||
| }); | ||
| </script> | ||
| {{/content}} | ||
| {{/extend}} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
La version du package est décrémentée (
...-496->...-492). Sauf intention explicite, ça casse la monotonie des versions et peut perturber la publication/CI. Ajuster pour incrémenter (ou justifier le changement).