From b2eb540d37cc92b00571c7fece8f23ead6b69003 Mon Sep 17 00:00:00 2001 From: LoIc Date: Fri, 18 Oct 2024 15:39:11 +0200 Subject: [PATCH] ajout mapprint et addlayers --- index.html | 19 ++++++++++++++++++- js/mviewerstudio.js | 4 ++++ lib/mv.js | 2 ++ mviewerstudio.i18n.json | 4 ++++ 4 files changed, 28 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index dfa02172..581af10f 100755 --- a/index.html +++ b/index.html @@ -369,7 +369,15 @@

- + +
diff --git a/js/mviewerstudio.js b/js/mviewerstudio.js index 3e8d2e56..b276dd90 100644 --- a/js/mviewerstudio.js +++ b/js/mviewerstudio.js @@ -273,6 +273,8 @@ var newConfiguration = function (infos) { "opt-showhelp", "opt-coordinates", "opt-togglealllayersfromtheme", + "opt-mapprint", + "opt-addlayerstools", "SwitchCustomBackground", "SwitchAdvanced", ].forEach((id) => { @@ -751,6 +753,8 @@ var getConfig = () => { 'togglealllayersfromtheme="' + ($("#opt-togglealllayersfromtheme").prop("checked") === true) + '"', + 'mapprint="' + ($("#opt-mapprint").prop("checked") === true) + '"', + 'addlayerstools="' + ($("#opt-addlayerstools").prop("checked") === true) + '"', ]; config.title = $("#opt-title").val(); diff --git a/lib/mv.js b/lib/mv.js index 3df11b20..77159665 100755 --- a/lib/mv.js +++ b/lib/mv.js @@ -1521,6 +1521,8 @@ var mv = (function () { "geoloc", "initialextenttool", "togglealllayersfromtheme", + "mapprint", + "addlayerstools", ].forEach(function (value, id) { if (application.attr(value) && application.attr(value) === "true") { $("#opt-" + value).prop("checked", true); diff --git a/mviewerstudio.i18n.json b/mviewerstudio.i18n.json index b8cf5fbc..31c49b79 100644 --- a/mviewerstudio.i18n.json +++ b/mviewerstudio.i18n.json @@ -68,6 +68,8 @@ "tabs.app.opt_coords": "Affichage des coordonnées au clic", "tabs.app.opt_mouseposition": "Afficher les coordonnées correspondant à la position de la souris", "tabs.app.opt_data": "Afficher/masquer toutes les données d'une thématique", + "tabs.app.opt_mapprint": "Impression de la vue courante depuis le navigateur", + "tabs.app.opt_addlayerstools": "Activer le panneau pour ajouter des couches WMS", "tabs.app.opt_geoloc": "Se géolocaliser", "tabs.app.opt_studio": "Ouvrir la carte dans le studio", "tabs.app.map_title": "Options de la carte", @@ -790,6 +792,8 @@ "tabs.app.opt_coords": "Display coordinates on click", "tabs.app.opt_mouseposition": "Display the coordinates corresponding to the mouse position", "tabs.app.opt_data": "Show/hide all data for a theme", + "tabs.app.opt_mapprint": "Printing the current view from the browser", + "tabs.app.opt_addlayerstools": "Activate the panel for adding WMS layers", "tabs.app.opt_geoloc": "Geolocate", "tabs.app.opt_studio": "Open map in mviewerstudio", "tabs.app.map_title": "Map options",