File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 18
18
this . watchInfoboxVisibility ( ) ;
19
19
20
20
this . hideCredits ( ) ;
21
+ this . hideNavigationDiv ( ) ;
21
22
this . hideInspector ( ) ;
22
23
23
24
this . setInfoboxFullscreen ( ) ;
103
104
}
104
105
}
105
106
107
+ /**
108
+ * Hide navigation tools (compass + zooming).
109
+ *
110
+ * @returns {undefined }
111
+ */
112
+ MobileController . prototype . hideNavigationDiv = function ( ) {
113
+ var scope = this ;
114
+
115
+ var loop = window . setInterval ( function ( ) {
116
+ var navDiv = document . getElementById ( "navigationDiv" ) ;
117
+ if ( Cesium . defined ( navDiv ) ) {
118
+ navDiv . parentNode . removeChild ( navDiv ) ;
119
+ clearInterval ( loop ) ;
120
+ }
121
+ } , 10 ) ;
122
+ }
123
+
106
124
/**
107
125
* Hide inspector that shows number of cached and loaded tiles.
108
126
*
112
130
var scope = this ;
113
131
114
132
if ( scope . _isMobile ) {
115
- document . getElementById ( "citydb_cachedTilesInspector" ) . style . display = "none" ;
116
- document . getElementById ( "citydb_showedTilesInspector" ) . style . display = "none" ;
133
+ var cachedTiles = document . getElementById ( "citydb_cachedTilesInspector" ) ;
134
+ cachedTiles . style . display = "none" ;
135
+
136
+ var showedTiles = document . getElementById ( "citydb_showedTilesInspector" ) ;
137
+ showedTiles . style . display = "none" ;
117
138
}
118
139
}
119
140
Original file line number Diff line number Diff line change 32
32
width : 95vw !important ;
33
33
overflow : hidden;
34
34
position : absolute;
35
+ margin-top : 15px ;
35
36
z-index : 1 !important ;
36
37
}
37
38
You can’t perform that action at this time.
0 commit comments