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
  • 2,961
  • 2
  • 29
  • 53
Andreas Covidiot
  • 3,888
  • 5
  • 45
  • 87

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
  • 3,888
  • 5
  • 45
  • 87