derekeder/FusionTable-Map-Template — pull request #11 by chrislkeller (2012-12-28 00:09:45+00:00)
Title: adds function to maintain map centerpoint when template is resized

Hey Derek...

I ran across a code snippet that will hold the map's centerpoint when the page is resized.

It's ultra small and minor but I figured I'd add it and see what you thought.

The function is:

calculateCenter: function() {
center = map.getCenter();
},

And it's used when the map is created:

google.maps.event.addDomListener(map, 'idle', function() {
MapsLib.calculateCenter();
});

google.maps.event.addDomListener(window, 'resize', function() {
map.setCenter(MapsLib.map_centroid);
});

For some reason my commit to the fork threw things off and it looks like much more was changed, but only the above code was added.

Take care sir and keep up the great work.

Chris K.