File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 28
28
< script type ="text/javascript " include ="mapv,elasticsearch " src ="../../dist/leaflet/include-leaflet.js "> </ script >
29
29
< script type ="text/javascript ">
30
30
var map ,
31
+ stopRender ,
31
32
timeControl ,
32
33
liveESService ,
33
34
liveRenderer ,
78
79
timeControl . updateOptions ( options ) ;
79
80
}
80
81
timeControl . start ( ) ;
82
+ stopRender = false ;
81
83
}
82
84
83
85
//暂停播放
84
86
function pause ( ) {
85
- timeControl . pause ( ) ;
87
+ timeControl && timeControl . pause ( ) ;
86
88
}
87
89
88
90
//停止播放
89
91
function stop ( ) {
90
- timeControl . stop ( ) ;
92
+ stopRender = true ;
93
+ timeControl && timeControl . stop ( ) ;
91
94
clearAll ( ) ;
92
95
}
93
96
109
112
if ( startT > endT ) {
110
113
return ;
111
114
}
115
+
112
116
var coords = wrapLatLngBounds ( extent ) , prec ;
117
+
113
118
if ( level <= 2 ) {
114
119
prec = 2 ;
115
120
} else if ( level > 2 && level <= 5 ) {
174
179
console . log ( error . body ) ;
175
180
return ;
176
181
}
177
- renderLive ( response . aggregations . zoomedInView . geohash . buckets ) ;
182
+ ! stopRender && renderLive ( response . aggregations . zoomedInView . geohash . buckets ) ;
178
183
} ) ;
179
184
}
180
185
You can’t perform that action at this time.
0 commit comments