GMap Block out of focus inside collapsed Collapsible Block and Javascript tools. Any idea why?

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by dan_metille on May 2, 2010 at 7:14pm

Hi,

I'm using Aquia Slate for building a Tour Operator website and I really would like to put the GMap Block into a collapsible block.

For achieving this, I've created a new block area (Preface Middle) and I'm using Collapsiblock 6.x-1.x-dev together with Javascript tools 6.x-1.0 and GMap 6.x-1.1-rc1.

Everything looks ok, until I'm setting the block collapse behavior to 'Collapsible, collapsed all the time' (that's what I want) or to 'Collapsible, collapsed by default'. Then, the Location map block is showing only partially, with the marker out of focus (see attached picture).

Just for checking, if I set it to 'Collapsible, expanded by default', then the map is showing without any problem, well centered with the marker in its middle.

I really don't know what to do to get it right. Is this about javascript (which I'm not really handling)? Has this more to do with the Gmap module ? (I have created an issue here: #781666). Has anyone succeed to display the Gmap Block into a collapsed-collapsible block, in a way or other?

Thanks very much for help!
.sahaj

AttachmentSize
Screen shot 2010年04月24日 at 7.01.36 PM.JPG 79.97 KB

Comments

Try using the collapsehack

Posted by msti on July 14, 2010 at 4:55pm

Try using the collapsehack option in the gmap macro:
[gmap width=100%|behavior=+collapsehack ]

I'm just curious, did the

Posted by MaskedMarauder on August 26, 2010 at 4:10pm

I'm just curious, did the above work?

I had a similar problem with the additional constraint that I wanted to defer loading the map until the viewer opened it, not just build it and hide it. The problem being that some users on slow connections complained they had to wait for maps they didn't want to see in the first place.

I ended up going with xmlrpc to defer invoking the GMAP function until if/when the user opens the enveloping div.

I am looking for a similar

Posted by msti on February 25, 2011 at 5:13pm

I am looking for a similar solution. As far as I have checked, the collapse hack does not work.
Could you share more information on your method?

Some solutions

Posted by Marko B on November 25, 2011 at 6:39pm

check here for more info about this problem http://drupal.org/node/352247#comment-5290536

Drupal Specialist at http://adriadrop.com/

TNT Themes

Group organizers

Group categories

Type of post

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /