Skip to content

Commit

Permalink
Merge pull request #546 from geoadmin/feat-remove-advanced-menu
Browse files Browse the repository at this point in the history
Temporary remove the advanced tool menu on productive environment
  • Loading branch information
ltshb authored Nov 27, 2023
2 parents 347a8d2 + 962c204 commit eb5677e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ export const BASE_URL_3D_TILES = enforceEndingSlashInUrl(import.meta.env.VITE_AP
export const WMS_TILE_SIZE = 512 // px

/**
* Map view's mininal resolution Currently set so that OL scalebar displays 10 meters Scalebar about
* 1" on screen, hence about 100px. So, 10 meters/100px = 0.1 Caveat: setting resolution (mininum
* Map view's minimal resolution Currently set so that OL scalebar displays 10 meters Scalebar about
* 1" on screen, hence about 100px. So, 10 meters/100px = 0.1 Caveat: setting resolution (minimum
* and maximum) has the precedence over zoom (minimum/maximum)
*/

Expand Down Expand Up @@ -250,7 +250,7 @@ export const VECTOR_LIGHT_BASE_MAP_STYLE_ID = 'ch.swisstopo.leichte-basiskarte_w
export const VECTOR_TILES_IMAGERY_STYLE_ID = 'ch.swisstopo.leichte-basiskarte-imagery_world.vt'

/**
* Display a big developpment banner on all but these hosts.
* Display a big development banner on all but these hosts.
*
* @type {String[]}
*/
Expand Down
3 changes: 2 additions & 1 deletion src/modules/menu/components/menu/MenuTray.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
/>
</div>
<MenuSection
v-if="hasDevSiteWarning"
id="toolsSection"
ref="toolsSection"
data-cy="menu-tray-tool-section"
Expand Down Expand Up @@ -97,7 +98,7 @@ export default {
lang: (state) => state.i18n.lang,
is3dMode: (state) => state.cesium.active,
}),
...mapGetters(['isPhoneMode']),
...mapGetters(['isPhoneMode', 'hasDevSiteWarning']),
showLayerList() {
return this.activeLayers.length > 0
},
Expand Down

0 comments on commit eb5677e

Please sign in to comment.