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 2828< script type ="text/javascript " include ="mapv,elasticsearch " src ="../../dist/leaflet/include-leaflet.js "> </ script >
2929< script type ="text/javascript ">
3030 var map ,
31+ stopRender ,
3132 timeControl ,
3233 liveESService ,
3334 liveRenderer ,
7879 timeControl . updateOptions ( options ) ;
7980 }
8081 timeControl . start ( ) ;
82+ stopRender = false ;
8183 }
8284
8385 //暂停播放
8486 function pause ( ) {
85- timeControl . pause ( ) ;
87+ timeControl && timeControl . pause ( ) ;
8688 }
8789
8890 //停止播放
8991 function stop ( ) {
90- timeControl . stop ( ) ;
92+ stopRender = true ;
93+ timeControl && timeControl . stop ( ) ;
9194 clearAll ( ) ;
9295 }
9396
109112 if ( startT > endT ) {
110113 return ;
111114 }
115+
112116 var coords = wrapLatLngBounds ( extent ) , prec ;
117+
113118 if ( level <= 2 ) {
114119 prec = 2 ;
115120 } else if ( level > 2 && level <= 5 ) {
174179 console . log ( error . body ) ;
175180 return ;
176181 }
177- renderLive ( response . aggregations . zoomedInView . geohash . buckets ) ;
182+ ! stopRender && renderLive ( response . aggregations . zoomedInView . geohash . buckets ) ;
178183 } ) ;
179184 }
180185
You can’t perform that action at this time.
0 commit comments