Can I possibly animate multiple variable values in a single animation? I would like to animate two variable values from this value to that value.
In this code, I would want the x and y values to animate from a given value to another value but I can only do it with the x. (Code was based from an answer here but would like some help in doing so with multiple values: jquery "animate" variable value)
$({someValue: 0}).animate({someValue: -2147.141601481341}, {
duration: 5000,
step: function() {
mainMap.pan({x: someValue, y: -5937.031428375433})
}
});