Summary

Classes


Class deCarta.Mobile.PositionAnimator

PositionAnimator allows you to define a start and end position and it will provide a sequence of interpolated positions suitable for an animation.

A typical use case would be animating the map deCarta.Mobile.Map to move smoothly from one center position to another one, or animating a map overlay object deCarta.Mobile.MapOverlay to move from a position to a different one

Class Summary
Constructor Attributes Constructor Name and Description
 
Used to animate a map or map overlay object.
Class Detail
deCarta.Mobile.PositionAnimator(opt)
Used to animate a map or map overlay object.
Parameters:
{object} opt
Options, a structure with the following fields:
  • start: deCarta.Mobile.Position the starting position
  • end: deCarta.Mobile.Position the ending position
  • start: deCarta.Mobile.Position the starting position
  • duration: {int} duration of the animation in milliseconds, default: 300
  • easing: {string} the easing function that will be used, default: linear
    Available functions:
    • linear
    • backin
    • backout
    • backinout
    • bouncein
    • bounceout
    • bounceinout
    • cubicin
    • cubicout
    • cubicinout
    • elasticin
    • elasticout
    • elasticinout
    • quadin
    • quadout
    • quadinout
    • sinein
    • sineout
    • sineinout
  • onStep: function that will be called with the updated position every step of the animation
    function getUpdatedPosition(deCarta.Mobile.Position)
  • onEnd: function that will be called when the animation reaches the end position
    function getUpdatedPosition(deCarta.Mobile.Position)

Documentation generated by JsDoc Toolkit 2.1.0 on Fri Nov 04 2011 12:27:12 GMT-0700 (PDT)