@@ -33,6 +33,7 @@ const temporalFrames = [
3333 title:' frame1' , // shown on control panel
3434 layers:[anyLayer1_1 , anyLayer1_2 ] // set layers you want to show at one frame...
3535 },
36+ {
3637 title:' frame2' ,
3738 layers:[anyLayer2_1 , anyLayer2_2 ]
3839 },
@@ -46,7 +47,7 @@ const temporalFrames = [
4647const temporalControl = new TemporalControl (temporalFrames , {
4748 interval: 100 , // duration a frame is shown, in miliseconds
4849 position: ' top-left' ,
49- performance: true // set when rendering is too slow, but frames which are not current are shown mostly transparent
50+ performance: true // set when rendering is too slow
5051});
5152map .addControl (temporalControl );
5253
@@ -55,12 +56,15 @@ temporalControl.prev()
5556temporalControl .next ()
5657temporalControl .play ()
5758temporalControl .pause ()
59+ temporalControl .isPlaying ()
60+ temporalControl .isLoopEnabled ()
5861temporalControl .setLoopEnabled (true )
62+ temporalControl .goto (5 )
5963```
6064
6165### Tips
6266
63- - In frames, You must set layer-objects corresponding to in map.
64- - Layers set in frames must be added in map
67+ - Layers set in frames must be added in the map
68+ - In each frames, You have to set layer-objects corresponding to the layers added to the map.
6569- when ` performance: true ` , not-current frames are shown as opacity=0.000000000000000000001
6670 - this option may not be neccesary for ordinary usecases
0 commit comments