1

got this trying to attach a resize event:

$( '.ui-resizable' ).resize( map.updateSize )  // causes the error "this.rc is not a function"

using OpenLayers 3.3.0 and jQuery 1.11.3

Jose Gómez
  • 3,110
  • 2
  • 32
  • 54
Andreas Covidiot
  • 4,286
  • 5
  • 51
  • 96

1 Answers1

1

but the following finally did the trick:

$( '.ui-resizable' ).resize( function(){ map.updateSize(); } )

So I guess the map.updateSize is somehow an "improper function" for jQuery, now wrapped within some anonymous function.

Andreas Covidiot
  • 4,286
  • 5
  • 51
  • 96