From GamingWiki
Line 130: | Line 130: | ||
if (key) { | if (key) { | ||
var marker = markers[key]; | var marker = markers[key]; | ||
− | if (typeof | + | if (typeof marker !== 'undefined') { |
var gMarker = marker["GMarker"]; | var gMarker = marker["GMarker"]; | ||
if (typeof gMarker !== 'undefined') { | if (typeof gMarker !== 'undefined') { | ||
Line 140: | Line 140: | ||
} | } | ||
} | } | ||
− | alert("About to recentre, and zoom to "+newZoom); | + | //alert("About to recentre, and zoom to "+newZoom+" for key '"+key+"'"); |
map.panTo(newLatLng); | map.panTo(newLatLng); | ||
map.setZoom(newZoom); | map.setZoom(newZoom); |
Revision as of 20:33, 26 May 2011