Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
deepM. I don't mean to sound ignorant, but how did you implement the fix in #3?
The only place I have a map in a collapsible box is on my custom user profile form. I dug around the code and I can't find a #block-gmap_location-0 DIV. Also, did you just make a custom JS and added the two jquery lines?
Thanks for the help.
Yes i added this lines in script.js which is added in theme and also make sure this script is loaded with jquery document ready function for example (search it up).
You need to put your own #gmap name of the div in this functions.
Comments
Comment #1
Marko B commentedInstalled also DEV version and problem is still present. I see some posts about it around 2008-2010 but none of them have any def. answers.
http://drupal.org/node/352247
http://groups.drupal.org/node/65883
http://drupal.org/node/212483
I tried also that collapsehack and still no luck. I am missing something or what?
Comment #2
Marko B commentedThere is much info about similar/core of this problem here http://drupal.org/node/352247#comment-5290536
Comment #3
Marko B commentedI posted solution here
http://www.drupaldump.com/gmap-center-and-resize-when-block-collapsed
Comment #4
wxman commenteddeepM. I don't mean to sound ignorant, but how did you implement the fix in #3?
The only place I have a map in a collapsible box is on my custom user profile form. I dug around the code and I can't find a #block-gmap_location-0 DIV. Also, did you just make a custom JS and added the two jquery lines?
Thanks for the help.
Comment #5
timonweb commentedI have the same problem, but your fix doesn't work for me. There must be another workaround.
Comment #6
Marko B commentedYes i added this lines in script.js which is added in theme and also make sure this script is loaded with jquery document ready function for example (search it up).
You need to put your own #gmap name of the div in this functions.
Comment #7
Louis Bob commentedHi deepM, I have followed your solution, unfortunately it is not working for me...