mirror of
https://github.com/ConnectedHumber/Air-Quality-Web
synced 2024-11-26 07:02:59 +00:00
Tone down the fps & disable dynamic time slider drag updates
This commit is contained in:
parent
835768830c
commit
3a58dd29ae
1 changed files with 2 additions and 2 deletions
|
@ -70,7 +70,7 @@ class MapManager {
|
||||||
//this.layer_time.on("timeloading", console.log.bind(null, "timeloading"));
|
//this.layer_time.on("timeloading", console.log.bind(null, "timeloading"));
|
||||||
|
|
||||||
this.layer_time_player = new L.TimeDimension.Player({
|
this.layer_time_player = new L.TimeDimension.Player({
|
||||||
transitionTime: 100,
|
transitionTime: 500,
|
||||||
loop: false,
|
loop: false,
|
||||||
startOver: true,
|
startOver: true,
|
||||||
buffer: 10 // Default: 5
|
buffer: 10 // Default: 5
|
||||||
|
@ -84,7 +84,7 @@ class MapManager {
|
||||||
minSpeed: 1,
|
minSpeed: 1,
|
||||||
speedStep: 0.25,
|
speedStep: 0.25,
|
||||||
maxSpeed: 15,
|
maxSpeed: 15,
|
||||||
timeSliderDragUpdate: true
|
timeSliderDragUpdate: false
|
||||||
});
|
});
|
||||||
|
|
||||||
this.map.addControl(this.layer_time_control);
|
this.map.addControl(this.layer_time_control);
|
||||||
|
|
Loading…
Reference in a new issue