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.
dan_metille's picture

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.JPG79.97 KB

Comments

Try using the collapsehack

msti's picture

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

I'm just curious, did the

MaskedMarauder's picture

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

msti's picture

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

Marko B's picture

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: