jQuery错误:"this.rc is not a function"(例如,调整大小时使用OpenLayers)



尝试附加调整大小事件:

$( '.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的"不当函数",现在包装在一些匿名函数中。

最新更新