File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 99
99
upload : " Upload GeoJSON"
100
100
fullscreen : " Toggle full-screen"
101
101
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"
104
107
modal :
105
108
load : " Load"
106
109
cancel : " Cancel"
Original file line number Diff line number Diff line change @@ -140,6 +140,10 @@ export class GttClient {
140
140
controls : control_defaults ( {
141
141
attributionOptions : {
142
142
collapsible : false
143
+ } ,
144
+ zoomOptions : {
145
+ zoomInTipLabel : this . i18n . control . zoom_in ,
146
+ zoomOutTipLabel : this . i18n . control . zoom_out
143
147
}
144
148
} )
145
149
} )
@@ -485,7 +489,7 @@ export class GttClient {
485
489
486
490
const control = new Toggle ( {
487
491
html : `<i class="material-icons" >${ mdi } </i>` ,
488
- title : type ,
492
+ title : this . i18n . control [ type . toLowerCase ( ) ] ,
489
493
interaction : draw ,
490
494
active : ( idx === 0 )
491
495
} )
@@ -544,7 +548,7 @@ export class GttClient {
544
548
545
549
editbar . addControl ( new Button ( {
546
550
html : '<i class="material-icons">file_upload</i>' ,
547
- title : this . i18n . control . geojson ,
551
+ title : this . i18n . control . upload ,
548
552
handleClick : ( ) => {
549
553
dialog . dialog ( 'open' )
550
554
}
You can’t perform that action at this time.
0 commit comments