File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 93
93
# Localize for use in Javascript
94
94
gtt_js :
95
95
control :
96
- geocoding : " Geocoding"
96
+ geocoding : " Location search"
97
+ geolocation : " My location"
97
98
maximize : " Zoom to all features"
98
99
upload : " Upload GeoJSON"
100
+ fullscreen : " Toggle full-screen"
101
+ rotate : " Reset rotation"
102
+ zoom-in : " Zoom in"
103
+ zoom-out : " Zoom out"
99
104
modal :
100
105
load : " Load"
101
106
cancel : " Cancel"
Original file line number Diff line number Diff line change @@ -309,8 +309,12 @@ export class GttClient {
309
309
this . setGeolocation ( this . map )
310
310
this . parseHistory ( )
311
311
312
- this . map . addControl ( new FullScreen ( ) )
313
- this . map . addControl ( new Rotate ( ) )
312
+ this . map . addControl ( new FullScreen ( {
313
+ tipLabel : this . i18n . control . fullscreen
314
+ } ) )
315
+ this . map . addControl ( new Rotate ( {
316
+ tipLabel : this . i18n . control . rotate
317
+ } ) )
314
318
315
319
// Control button
316
320
const maximizeCtrl = new Button ( {
@@ -494,7 +498,7 @@ export class GttClient {
494
498
width : 380 ,
495
499
modal : true ,
496
500
buttons : {
497
- 'Load' : function ( ) {
501
+ [ mapObj . i18n . modal . load ] : function ( ) {
498
502
const geojson_input = document . querySelector ( '#dialog-geojson-upload textarea' ) as HTMLInputElement
499
503
const data = geojson_input . value
500
504
if ( data !== null ) {
@@ -510,7 +514,7 @@ export class GttClient {
510
514
}
511
515
$ ( this ) . dialog ( 'close' )
512
516
} ,
513
- 'Cancel' : function ( ) {
517
+ [ mapObj . i18n . modal . cancel ] : function ( ) {
514
518
$ ( this ) . dialog ( 'close' )
515
519
}
516
520
}
You can’t perform that action at this time.
0 commit comments