Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print module #381

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app-starter/WguAppTemplate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ import InfoClickWin from '../src/components/infoclick/InfoClickWin'
import MapLoadingStatus from '../src/components/progress/MapLoadingStatus'
import AttributeTableWin from '../src/components/attributeTable/AttributeTableWin.vue'
import MapRecorderWin from '../src/components/maprecorder/MapRecorderWin'
import printDialog from '../src/components/printTool/printDialog.vue'
import SampleModuleWin from './components/SampleModule.vue'

export default {
Expand All @@ -116,6 +117,7 @@ export default {
'wgu-maploading-status': MapLoadingStatus,
'wgu-attributetable-win': AttributeTableWin,
'wgu-maprecorder-win': MapRecorderWin,
'wgu-print-win': printDialog,
'sample-module-win': SampleModuleWin
},
data () {
Expand Down
6 changes: 6 additions & 0 deletions app-starter/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,11 @@
"sample-module": {
"title": "Sample Module",
"text": "Hello Wegue"
},

"wgu-print": {
"scales": [
1000000, 500000, 250000, 100000, 50000, 25000
]
}
}
10 changes: 10 additions & 0 deletions app-starter/static/app-conf-projected.json
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,16 @@
},
"wgu-localeswitcher": {
"target": "toolbar"
},
"wgu-print": {
"target": "toolbar",
"icon": "mdi-printer",
"win": "floating",
"draggable": false,
"initPos": {
"left": 8,
"top": 74
}
}
}

Expand Down
10 changes: 10 additions & 0 deletions app-starter/static/app-conf-sidebar.json
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,16 @@
},
"wgu-localeswitcher": {
"target": "toolbar"
},
"wgu-print": {
"target": "toolbar",
"icon": "mdi-printer",
"win": "floating",
"draggable": false,
"initPos": {
"left": 8,
"top": 74
}
}
}
}
10 changes: 10 additions & 0 deletions app-starter/static/app-conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,16 @@
"wgu-localeswitcher": {
"target": "toolbar"
},
"wgu-print": {
"target": "toolbar",
"icon": "mdi-printer",
"win": "floating",
"draggable": false,
"initPos": {
"left": 8,
"top": 74
}
},
"sample-module": {
"target": "toolbar",
"win": "floating",
Expand Down
14 changes: 13 additions & 1 deletion docs/module-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,16 @@ Module identifier: `wgu-localeswitcher`

No additional config options besides the general ones.

LocaleSwitcher will automatically pick up the supported languages configured by the [lang](wegue-configuration?id=lang) property and offers to switch between them at runtime.
LocaleSwitcher will automatically pick up the supported languages configured by the [lang](wegue-configuration?id=lang) property and offers to switch between them at runtime.

## Print

The module allows to print and export the current map in PDF format.
The paper format, orientation, dpi resolution and paper map scale have to be specified in order to perform print

Module identifier: `wgu-print`

| Property | Meaning | Example |
|--------------------|:---------:|---------|
| scales | (optional) the allowed print scales list | `"scales": [100000, 50000, 25000, 10000, 5000]` |
| resolutions | (optional) the allowed print dpi resolution list | `"resolutions": [72, 150, 200, 300]` |
Loading
Loading