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
| Attachment | Size |
|---|---|
| Screen shot 2010-04-24 at 7.01.36 PM.JPG | 79.97 KB |
Comments
Try using the collapsehack
Try using the collapsehack option in the gmap macro:
[gmap width=100%|behavior=+collapsehack ]
I'm just curious, did the
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
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
check here for more info about this problem http://drupal.org/node/352247#comment-5290536
Drupal Specialist at http://adriadrop.com/
solution here
http://www.drupaldump.com/gmap-center-and-resize-when-block-collapsed
Drupal Specialist at http://adriadrop.com/