Zoom In/Out goes to original center of map after panning.
I have custom controls for panning (north, south, east, west) and zooming in/out. When panning the map using the controls and then zooming in, the map zooms in using the default center and not the current center. If the user drags the map and then zooms in/out the center is correct.
my code for panning is used with an onclick function (this is for north):
function PanMapNorth() {
var map_div = document.getElementById('myMap');
var h = map_div.style.height;
var h_val = -1*(parseInt(h.substring(0, h.length-2))/2);
map.Pan(0,h_val);
getDisplayCount();
}
Why is the current center of the map not being used for zooming after using the panning controls I created?

