I believe you're updating the wrong area. It only works in the upper left corner since the coordinates are acting as if it's one level, which a gmap is not. Use onmapx and onmapy to figure out the coordinates you are updating on the gmap and update those coordinates instead.