Hi,
I'm not sure I'm well understanding all the javascript of gmap module, but i'm trying to modify the height of my Gmap dynamicly.
I saw that there's "obj.bind("heightchange", function (h) { ... }" in gmap.js, and if I'm understanding this line that mean that I can trigger an event that's called "heightchange", with one parameter for the new height.
But with :
Drupal.gmap.getMap('my_gmap').change('heightchange', '1000px');
I have a js error : "Result of expression 'obj.map' [undefined] is not an object. line 195 gmap.js".
Is this normal ? (I checked and Drupal.gmap.getMap('my_gmap') returing an object that's not undefined).
Thanks.
Comments
Comment #1
magicyril commentedIt's working with a simple : $('selector for the right div).height(the_height); but is it as clean as doing with the gmap event ?
Comment #2
bdragon commentedThe second parameter of change() is the binding, not the userdata.
Does this make it work for you?
Comment #3
rooby commentedClosing due to no response to #2".
Please reopen if this is still an issue.