jQuery error: "this.rc is not a function" (e.g. with OpenLayers on resize)
jQuery error: "this.rc is not a function" (e.g. with OpenLayers on resize)
在尝试附加调整大小事件时收到此消息:
$( '.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 的“ 不正确的函数 ”,现在包含在一些匿名函数中。
在尝试附加调整大小事件时收到此消息:
$( '.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 的“ 不正确的函数 ”,现在包含在一些匿名函数中。