mirror of
https://github.com/Viglino/ol-ext.git
synced 2025-12-08 19:26:29 +00:00
30 lines
745 B
JavaScript
30 lines
745 B
JavaScript
/*
|
|
Copyright (c) 2016 Jean-Marc VIGLINO,
|
|
released under the CeCILL license (http://www.cecill.info/).
|
|
|
|
*/
|
|
|
|
import ol from 'ol'
|
|
import ol_featureAnimation from './FeatureAnimation'
|
|
|
|
/** Show an object for a given duration
|
|
* @constructor
|
|
* @extends {ol_featureAnimation}
|
|
* @param {ol_featureAnimationOptions} options
|
|
*/
|
|
var ol_featureAnimation_Show = function(options)
|
|
{ ol_featureAnimation.call(this, options);
|
|
}
|
|
ol.inherits(ol_featureAnimation_Show, ol_featureAnimation);
|
|
|
|
/** Animate: just show the object during the laps time
|
|
* @param {ol_featureAnimationEvent} e
|
|
*/
|
|
ol_featureAnimation_Show.prototype.animate = function (e)
|
|
{
|
|
this.drawGeom_(e, e.geom);
|
|
return (e.time <= this.duration_);
|
|
}
|
|
|
|
export default ol_featureAnimation_Show
|