Skip to content

Commit

Permalink
feat: Allow to import layers in globe activity (closes #399)
Browse files Browse the repository at this point in the history
  • Loading branch information
Floran05 committed Dec 4, 2024
1 parent c3162f1 commit 4002f82
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@ const globeEngine = {
fullscreenButton: false,
animation: false,
timeline: false,
creditContainer: 'globe-credit'
creditContainer: 'globe-credit',
depthTestAgainstTerrain: true
},
fileLayers: {
clearOnDrop: false,
Expand Down Expand Up @@ -682,6 +683,7 @@ module.exports = {
},
fab: {
content: [
{ id: 'add-layer', icon: 'las la-plus', label: 'mixins.activity.ADD_LAYER', modes: ['import'], route: { name: 'add-globe-layer', query: { project: ':project' } } },
{ id: 'probe-location', icon: 'las la-eye-dropper', label: 'mixins.activity.PROBE', handler: 'probeAtLocation' }
]
},
Expand Down
8 changes: 8 additions & 0 deletions src/router/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@ module.exports = [{
fab: tours.fab
},
children: {
'add-layer': {
name: 'add-globe-layer',
component: 'catalog/KAddLayer',
tour: {
'import-layer': tours['import-layer'],
},
props: { modes: ['import'] }
},
'layer-chart/:layerId?': {
name: 'globe-layer-chart',
component: 'KFeaturesChart',
Expand Down

0 comments on commit 4002f82

Please sign in to comment.