if focuschatballoons is at false, disableAutoPan should be at true

This commit is contained in:
Daniel Chesters 2011-02-14 21:53:07 +01:00
parent b048ff737f
commit 1d5bf4528c

View file

@ -419,7 +419,7 @@ DynMap.prototype = {
popup.popupTime = now.getTime(); popup.popupTime = now.getTime();
if (!popup.infoWindow) { if (!popup.infoWindow) {
popup.infoWindow = new google.maps.InfoWindow({ popup.infoWindow = new google.maps.InfoWindow({
disableAutoPan: me.options.focuschatballoons || false, disableAutoPan: !me.options.focuschatballoons || false,
content: htmlMessage content: htmlMessage
}); });
} else { } else {