I'm having a little trouble with what I thought would be quite easy. I'm trying to implement a map where you can zoom in and out with your mousewheel. This part works perfectly fine, but it's alway zooming that the top left corner stays at (0/0). I tried to give it the typical google maps zoom, but it didnt really work out.
I prepared a little jsFiddle for you to see what I'm talking about. As I said I tried to implement the centering part already in the centerOnMouse
function, but I had no luck so far. maybee anyone can suggest how it can be altered to fit my needs. Thanks in advance.