File tree Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,10 @@ var App = (function ($, publ) {
35
35
36
36
// Quick hack
37
37
var quick_hack = {
38
- lon : 135.1955 ,
39
- lat : 34.6901 ,
38
+ lon : 139.691706 ,
39
+ lat : 35.689524 ,
40
40
zoom : 13 ,
41
- maxzoom : 18
41
+ maxzoom : 19
42
42
} ;
43
43
44
44
/**
@@ -170,7 +170,7 @@ var App = (function ($, publ) {
170
170
toolbar . setPosition ( "bottom-left" ) ;
171
171
map . addControl ( toolbar ) ;
172
172
173
- // this.setView();
173
+ this . setView ( ) ;
174
174
this . setGeolocation ( ) ;
175
175
this . setGeocoding ( ) ;
176
176
this . parseHistory ( ) ;
@@ -431,7 +431,6 @@ var App = (function ($, publ) {
431
431
ol . extent . extend ( extent , feature . getGeometry ( ) . getExtent ( ) ) ;
432
432
} ) ;
433
433
maps . forEach ( function ( m ) {
434
- m . getView ( ) . setMaxZoom ( 18 ) ;
435
434
m . getView ( ) . fit ( extent , m . getSize ( ) ) ;
436
435
} ) ;
437
436
}
Original file line number Diff line number Diff line change 17
17
18
18
settings (
19
19
:default => {
20
- 'map_center_longitude ' => 139.691706 ,
21
- 'map_center_latitude ' => 35.689524 ,
22
- 'map_zoom_level ' => 8 ,
23
- 'map_maxzoom_level ' => 18
20
+ 'default_map_center_longitude ' => 139.691706 ,
21
+ 'default_map_center_latitude ' => 35.689524 ,
22
+ 'default_map_zoom_level ' => 13 ,
23
+ 'default_map_maxzoom_level ' => 19
24
24
} ,
25
25
partial : 'settings/gtt/settings'
26
26
)
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def view_layouts_base_body_bottom(context={})
47
47
:maxzoom => Setting . plugin_redmine_gtt [ 'default_map_maxzoom_level' ] ,
48
48
:geocoder_url => Setting . plugin_redmine_gtt [ 'default_geocoder_url' ] ,
49
49
:geocoder_apikey => Setting . plugin_redmine_gtt [ 'default_geocoder_apikey' ] ,
50
- :plugin_settings => Setting . plugin_redmine_gtt
50
+ :plugin_settings => Setting . plugin_redmine_gtt . select { | key , value | key . to_s . match ( /^(?!default).+/ ) }
51
51
} , :id => 'ol-defaults' , :style => 'display:none' )
52
52
return tags . join ( "\n " )
53
53
end
You can’t perform that action at this time.
0 commit comments