Skip to content

Commit

Permalink
Merge commit 'rick/t506' into 0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
annasob committed May 10, 2011
2 parents 180f4c1 + 918d6f2 commit 7a2c071
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/googlemap/popcorn.googlemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,11 @@ var googleCallback;
// ensure the map has been initialized in the setup function above
var isMapSetup = function () {
if ( map ) {
map.getDiv().style.display = "block";
// reset the location and zoom just in case the user plaid with the map
map.setCenter(location);
map.getDiv().style.display = "block";

// reset the location and zoom just in case the user manually moved the map
google.maps.event.trigger(map, "resize");
map.setCenter(location);

// make sure options.zoom is a number
if ( options.zoom && typeof options.zoom !== "number" ) {
Expand All @@ -149,8 +151,6 @@ var googleCallback;
options.pitch = +options.pitch;
}

google.maps.event.trigger(map, 'resize');

if ( options.type === "STREETVIEW" ) {
// Switch this map into streeview mode
map.setStreetView(
Expand Down

0 comments on commit 7a2c071

Please sign in to comment.