diff --git a/src/main/js/apps/sample/app.json b/src/main/js/apps/sample/app.json index 8a88cbf..30aba60 100644 --- a/src/main/js/apps/sample/app.json +++ b/src/main/js/apps/sample/app.json @@ -1,4 +1,7 @@ { + "properties": { + "title": "${apptitle}" + }, "load": { "bundleLocations": [ "localbundles", @@ -8,6 +11,7 @@ "banner", "dn_intro", "map-init", + "mapnavigation", "map-preload-2D", "notifier", "splashscreen", @@ -21,6 +25,9 @@ "toc", "toolset", "toolrules" + ], + "i18n": [ + "bundle" ] }, "bundles": { @@ -35,15 +42,15 @@ "delay": 100 }, "popover": { - "title": "Table of content", - "description": "This opens a widget that allows you control the layers of the map" + "title": "${tour.steps.step1.title}", + "description": "${tour.steps.step1.content}" } }, { "element": ".toc-window", "popover": { - "title": "Table of content", - "description": "It shows the layers of the map" + "title": "${tour.steps.step2.title}", + "description": "${tour.steps.step2.content}" } }, { @@ -52,8 +59,8 @@ "action": "elementClick" }, "popover": { - "title": "Expand layer group", - "description": "Click it to show sublayers" + "title": "${tour.steps.step3.title}", + "description": "${tour.steps.step3.content}" } }, { @@ -62,11 +69,14 @@ "action": "elementClick" }, "popover": { - "title": "Options for this layer", - "description": "Click it to show options" + "title": "${tour.steps.step4.title}", + "description": "${tour.steps.step4.content}" } } - ] + ], + "nextBtnText": "${tour.buttons.next}", + "prevBtnText": "${tour.buttons.prev}", + "doneBtnText": "${tour.buttons.done}" } }, "banner": { @@ -138,13 +148,12 @@ { "id": "mapview_tools", "tools": [ - "tocTourTool", + "tourClickTool", "locateMeTool", "zoomInTool", "zoomOutTool", "compassTool", - "restoreInitialViewTool", - "viewmodeSwitcherTool" + "restoreInitialViewTool" ], "registerWidget": { "widgetRole": "mapview_tools" @@ -165,7 +174,7 @@ "toolrules": { "ToolActiveStateManager": { "activateOnStartToolIds": [ - "basemapFaderToggleTool" + "tourClickTool" ] } } diff --git a/src/main/js/apps/sample/nls/bundle.js b/src/main/js/apps/sample/nls/bundle.js new file mode 100644 index 0000000..601b894 --- /dev/null +++ b/src/main/js/apps/sample/nls/bundle.js @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2024 con terra GmbH (info@conterra.de) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +export default { + root: { + apptitle: "DN_Intro Demo", + tour: { + steps: { + step1: { + title: "Map Content Tool", + content: "Click here to open the table of contents" + }, + step2: { + title: "Table of Contents", + content: "This is the table of contents. It displays which layers are visible on the map." + }, + step3: { + title: "Expand Layer", + content: "Click here to expand the layer. This makes the sublayers visible in the toc." + }, + step4: { + title: "Toc Actions", + content: "In this menu the toc actions are bundled. Here you can trigger actions for the specific layer such as 'Zoom to' or 'Show description' where applicable." + } + }, + buttons: { + next: "Next", + prev: "Previous", + done: "Done" + } + } + }, + de: true +}; diff --git a/src/main/js/apps/sample/nls/de/bundle.js b/src/main/js/apps/sample/nls/de/bundle.js new file mode 100644 index 0000000..81ffbe1 --- /dev/null +++ b/src/main/js/apps/sample/nls/de/bundle.js @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2024 con terra GmbH (info@conterra.de) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +export default { + apptitle: "DN_Intro Demo", + tour: { + steps: { + step1: { + title: "Karteninhalt Tool", + content: "Klicken Sie hier, um den Karteninhalt zu öffnen" + }, + step2: { + title: "Karteninhalt", + content: "Dieses Fenster ist der Karteninhalt. Er stellt dar, welche Daten auf der Karte angezeigt werden können." + }, + step3: { + title: "Layer ausklappen", + content: "Klicken Sie hier um den Layer auszuklappen. Dadurch werden die untergeordneten Layer angezeigt." + }, + step4: { + title: "Toc Actions", + content: "In diesem Menü befinden sich die Toc Actions. Hier können Sie Aktionen für den Layer ausführen wie 'Zoomen auf' und 'Weitere Infos anzeigen'." + } + }, + buttons: { + next: "Nächster Schritt", + prev: "Vorheriger Schritt", + done: "Fertig" + } + } +};