[OpenLayers-Dev] tween, panTo, animated panning

Eric Lemoine eric.c2c at gmail.com
Wed Jan 30 18:20:14 EST 2008


On Jan 30, 2008 11:09 PM, Eric Lemoine <eric.c2c at gmail.com> wrote:
> If I understand you correctly, in the general case setCenter will be
> called with the cancelTween option set to true. However, the eachStep
> callback in panTo will pass cancelTween:false to setCenter. Am I
> correct?
>
> Based on Chris' proposal for #967, we should be able to add this
> cancelTween option to setCenter.

#967 includes a new patch that might help you. Apply the patch and add
some code in the moveTo method to cancel animation if cancelTween is
true. What do you think?

--
Eric



More information about the Dev mailing list