I'm trying to replicate an example from the OpenLayers Examples, specifically this one: http://openlayers.org/en/v3.0.0/examples/animation.html
The problem is that in my jsfiddle I cannot get all the buttons to work properly. For some reason the rotate buttons work but all the other ones do not. My fiddle is right here; http://jsfiddle.net/TimLucas/m6cju630/1/
It seems to be a problem with some view.setCenter
since this is the only thing different in the functions calling the other buttons ('rotate to Madrid', etc.). I was searching for other examples where this function does work, but I cannot find any differences between the function in my fiddle that does not work and fiddles that do seem to get this functionality working (such as http://jsfiddle.net/ygtxwodL/).
Can anyone see what I am doing wrong?
I am rather new to JavaScript so apologies for any obvious mistakes.