尝试附加调整大小事件:
$( '.ui-resizable' ).resize( map.updateSize ) // causes the error "this.rc is not a function"
使用 OpenLayers 3.3.0 和 jQuery 1.11.3
但以下方法最终成功了:
$( '.ui-resizable' ).resize( function(){ map.updateSize(); } )
所以我想map.updateSize
在某种程度上是jQuery的"不当函数",现在包装在一些匿名函数中。