Skip to content

Commit dde7289

Browse files
committed
Merge remote-tracking branch 'origin/main' into ftr/prepare-release
2 parents 62b5e5a + 6559a0e commit dde7289

File tree

4 files changed

+1275
-1437
lines changed

4 files changed

+1275
-1437
lines changed

config/locales/en.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,11 @@ en:
9999
upload: "Upload GeoJSON"
100100
fullscreen: "Toggle full-screen"
101101
rotate: "Reset rotation"
102-
zoom-in: "Zoom in"
103-
zoom-out: "Zoom out"
102+
zoom_in: "Zoom in"
103+
zoom_out: "Zoom out"
104+
point: "Point editor"
105+
linestring: "Line editor"
106+
polygon: "Area editor"
104107
modal:
105108
load: "Load"
106109
cancel: "Cancel"

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,24 @@
2020
},
2121
"homepage": "https://github.com/gtt-project/redmine_gtt#readme",
2222
"dependencies": {
23-
"@juggle/resize-observer": "^3.3.1",
24-
"@material-design-icons/font": "^0.11.8",
23+
"@juggle/resize-observer": "^3.4.0",
24+
"@material-design-icons/font": "^0.12.1",
2525
"geojson": "^0.5.0",
26-
"ol": "^6.14.1",
27-
"ol-ext": "^3.2.22"
26+
"ol": "^6.15.1",
27+
"ol-ext": "^3.2.30"
2828
},
2929
"devDependencies": {
30-
"@types/geojson": "^7946.0.8",
30+
"@types/geojson": "^7946.0.10",
3131
"@types/jquery": "^3.5.14",
3232
"@types/jqueryui": "^1.12.16",
3333
"@types/ol-ext": "npm:@siedlerchr/types-ol-ext",
34-
"css-loader": "^5.1.1",
35-
"sass": "^1.32.8",
36-
"sass-loader": "^11.0.1",
37-
"style-loader": "^2.0.0",
38-
"ts-loader": "^8.0.17",
39-
"typescript": "^4.2.3",
40-
"webpack": "^5.24.4",
41-
"webpack-cli": "^4.5.0"
34+
"css-loader": "^6.7.1",
35+
"sass": "^1.54.9",
36+
"sass-loader": "^13.0.2",
37+
"style-loader": "^3.3.1",
38+
"ts-loader": "^9.3.1",
39+
"typescript": "^4.8.3",
40+
"webpack": "^5.74.0",
41+
"webpack-cli": "^4.10.0"
4242
}
4343
}

src/components/gtt-client.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ interface FilterOption {
6464

6565
interface TileLayerSource {
6666
layer: typeof Tile
67-
source: typeof OSM | typeof XYZ
67+
source: typeof OSM | typeof XYZ | typeof TileWMS
6868
}
6969

7070
interface ImageLayerSource {
@@ -140,6 +140,10 @@ export class GttClient {
140140
controls: control_defaults({
141141
attributionOptions: {
142142
collapsible: false
143+
},
144+
zoomOptions: {
145+
zoomInTipLabel: this.i18n.control.zoom_in,
146+
zoomOutTipLabel: this.i18n.control.zoom_out
143147
}
144148
})
145149
})
@@ -170,7 +174,7 @@ export class GttClient {
170174
if (tileLayerSource) {
171175
const l = new (tileLayerSource.layer)({
172176
visible: false,
173-
source: new (tileLayerSource.source)(layer.options)
177+
source: new (tileLayerSource.source)(layer.options as any)
174178
})
175179

176180
l.set('lid', layer.id)
@@ -459,7 +463,7 @@ export class GttClient {
459463
})
460464
mainbar.addControl(editbar)
461465

462-
types.forEach((type, idx) => {
466+
types.forEach((type: any, idx) => {
463467
const draw = new Draw({
464468
type: type,
465469
source: this.vector.getSource()
@@ -485,7 +489,7 @@ export class GttClient {
485489

486490
const control = new Toggle({
487491
html: `<i class="material-icons" >${mdi}</i>`,
488-
title: type,
492+
title: this.i18n.control[type.toLowerCase()],
489493
interaction: draw,
490494
active: (idx === 0)
491495
})
@@ -544,7 +548,7 @@ export class GttClient {
544548

545549
editbar.addControl(new Button({
546550
html: '<i class="material-icons">file_upload</i>',
547-
title: this.i18n.control.geojson,
551+
title: this.i18n.control.upload,
548552
handleClick: () => {
549553
dialog.dialog('open')
550554
}

0 commit comments

Comments
 (0)