diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f4773191..1c0c8b751 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,22 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [1.27.9](https://github.com/geops/trafimage-maps/compare/v1.27.8...v1.27.9) (2024-02-21) + +### Bug Fixes + +- **railplus:** update address in railplus PDF legends ([#1147](https://github.com/geops/trafimage-maps/issues/1147)) ([57f9f9d](https://github.com/geops/trafimage-maps/commit/57f9f9d9db7ad6b40e94c5229172a8590cba5669)) + +### [1.27.8](https://github.com/geops/trafimage-maps/compare/v1.27.7...v1.27.8) (2024-02-15) + +### Bug Fixes + +- fix display of zoom bar and map buttons on iframe topics ([20961c0](https://github.com/geops/trafimage-maps/commit/20961c0269c536f8e28185c0f96905c642375f0e)) +- fix display of zoom bar and map buttons on iframe topics ([bc0d732](https://github.com/geops/trafimage-maps/commit/bc0d732d401de3a5e15263bb9fb279740a7568e5)) +- hide zoom buttons on mobile for iframe topics using css ([33032a9](https://github.com/geops/trafimage-maps/commit/33032a90f7c8914d9a282d047480631ce8e8b436)) +- hide zoom buttons on mobile for iframe topics using css ([c59d8f0](https://github.com/geops/trafimage-maps/commit/c59d8f08ac192d6575c8eab636f997b071e5a061)) +- hide zoom buttons on mobile for iframe topics using css ([be0e46c](https://github.com/geops/trafimage-maps/commit/be0e46c78409c5ac161cce031e918ebb8bcbaca5)) + ### [1.27.7](https://github.com/geops/trafimage-maps/compare/v1.27.6...v1.27.7) (2024-02-12) ### Bug Fixes diff --git a/package.json b/package.json index ab54e252b..4da47de12 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "trafimage-maps", "description": "trafimage-maps web component", - "version": "1.27.7", + "version": "1.27.9", "private": true, "main": "build/bundle.js", "proxy": "http://127.0.0.1:8000", diff --git a/src/components/MapControls/MapControls.js b/src/components/MapControls/MapControls.js index a619a0414..89bed6e24 100644 --- a/src/components/MapControls/MapControls.js +++ b/src/components/MapControls/MapControls.js @@ -143,7 +143,7 @@ function MapControls({ map={map} zoomInChildren={} zoomOutChildren={} - zoomSlider={!isSmallHeight && zoomSlider} + zoomSlider={!isSmallHeight && !isMobile && zoomSlider} titles={{ zoomIn: t("Hineinzoomen"), zoomOut: t("Rauszoomen"), diff --git a/src/components/TrafimageMaps/TrafimageMaps.scss b/src/components/TrafimageMaps/TrafimageMaps.scss index b76fbe347..2249c90de 100755 --- a/src/components/TrafimageMaps/TrafimageMaps.scss +++ b/src/components/TrafimageMaps/TrafimageMaps.scss @@ -435,4 +435,17 @@ } } } + + /* Topic spezifische css */ + &.ch-sbb-geltungsbereiche-iframe { + &.tm-w-xs .wkp-map-controls { + display: none; + } + } + + &.ch-sbb-direktverbindungen-iframe { + &.tm-w-xs .rs-zooms-bar { + display: none; + } + } } \ No newline at end of file diff --git a/src/img/railplus_legend_de.url.svg b/src/img/railplus_legend_de.url.svg index fa7d88b39..a1d41c313 100644 --- a/src/img/railplus_legend_de.url.svg +++ b/src/img/railplus_legend_de.url.svg @@ -1 +1,235 @@ -RAILplus Streckennetz***publishedAt***Stand:RAILplus-NETZ-***year***Quelle: OpenStreetMap contributors © SBB/CFF/FFS www.trafimage.ch www.geops.chRAILplus AGHintere Bahnhofstraße 855001 Aarauwww.railplus.ch0102030 km \ No newline at end of file + + + + + + + + + + RAILplus Streckennetz + + + + ***publishedAt*** + Stand: + + + + RAILplus-NETZ-***year*** + Quelle: OpenStreetMap contributors © SBB/CFF/FFS www.trafimage.ch www.geops.ch + + + + RAILplus AGHintere Bahnhofstraße 485001 Aarauwww.railplus.ch + + + + + + + + + 0 + + + 10 + + + 20 + + + 30 km + + + + + + + diff --git a/src/img/railplus_legend_fr.url.svg b/src/img/railplus_legend_fr.url.svg index 3d074a263..1b1681380 100644 --- a/src/img/railplus_legend_fr.url.svg +++ b/src/img/railplus_legend_fr.url.svg @@ -1 +1,235 @@ -RAILplus Carte du réseau***publishedAt***Etat:RAILplus-NETZ-***year***Quelle: OpenStreetMap contributors © SBB/CFF/FFS www.trafimage.ch www.geops.chRAILplus AGHintere Bahnhofstraße 855001 Aarauwww.railplus.ch0102030 km \ No newline at end of file + + + + + + + + + + RAILplus Carte du réseau + + + + ***publishedAt*** + Etat: + + + + RAILplus-NETZ-***year*** + Quelle: OpenStreetMap contributors © SBB/CFF/FFS www.trafimage.ch www.geops.ch + + + + RAILplus AGHintere Bahnhofstraße 485001 Aarauwww.railplus.ch + + + + + + + + + 0 + + + 10 + + + 20 + + + 30 km + + + + + + + diff --git a/src/img/railplus_legend_it.url.svg b/src/img/railplus_legend_it.url.svg index 1ae0118b6..369378a84 100644 --- a/src/img/railplus_legend_it.url.svg +++ b/src/img/railplus_legend_it.url.svg @@ -1 +1,235 @@ -RAILplus Carta della rete***publishedAt***Stato:RAILplus-NETZ-***year***Quelle: OpenStreetMap contributors © SBB/CFF/FFS www.trafimage.ch www.geops.chRAILplus AGHintere Bahnhofstraße 855001 Aarauwww.railplus.ch0102030 km \ No newline at end of file + + + + + + + + + + RAILplus Carta della rete + + + + ***publishedAt*** + Stato: + + + + RAILplus-NETZ-***year*** + Quelle: OpenStreetMap contributors © SBB/CFF/FFS www.trafimage.ch www.geops.ch + + + + RAILplus AGHintere Bahnhofstraße 485001 Aarauwww.railplus.ch + + + + + + + + + 0 + + + 10 + + + 20 + + + 30 km + + + + + + + diff --git a/src/menus/DirektverbindungenMenu/DvMenu.js b/src/menus/DirektverbindungenMenu/DvMenu.js index 0c8f3b422..b509f4c72 100644 --- a/src/menus/DirektverbindungenMenu/DvMenu.js +++ b/src/menus/DirektverbindungenMenu/DvMenu.js @@ -31,7 +31,6 @@ function DvMenu() { const dispatch = useDispatch(); const classes = useStyles(); const featureInfo = useSelector((state) => state.app.featureInfo); - const topic = useSelector((state) => state.app.activeTopic); const highlightLayer = useSelector((state) => state.map.highlightLayer); const isMobile = useIsMobile(); @@ -62,13 +61,7 @@ function DvMenu() { useEffect(() => { // Hide menu and zoom buttons on mobile dispatch(setDisplayMenu(!isMobile)); - const zoomControls = document - .querySelectorAll(`.${topic.key.replaceAll(".", "-")}.map-controls`)[0] - ?.querySelectorAll(".rs-zooms-bar")[0]; - if (zoomControls) { - zoomControls.style.display = isMobile ? "none" : "block"; - } - }, [isMobile, topic, dispatch]); + }, [isMobile, dispatch]); // Hook to highlight map features useHighlightLayer(featureInfo, highlightLayer);