} else {
this.map.setCenter(center, zoom);
}
+ this.resizeMap();
+ },
+
+ resizeMap: function() {
+ var map = $('map');
+ map.style.width = map.offsetWidth.toString() + 'px';
+ map.style.height = map.offsetHeight.toString() + 'px';
},
observer: function(evt) {
return undefined;
}
};
+
+window.onresize = function() {
+ SYJView.resizeMap();
+};