Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Google Maps won't work as it should inside an hidden Horizontal Tab.
I tried with Geofield using 2 option for the Formatter : Geofield Map & OpenLayers with Gmap.
i think this is a similar issue with #352247: Gmap centering has error on hidden Quicktab tabs (was: How to display two gmaps properly).
What about using CSS class altering in JS instead of jquery hide, show effects.
Comment | File | Size | Author |
---|---|---|---|
#1 | Google_maps_inside_Horizontal_Tabs-1299138-1.patch | 2.63 KB | vasike |
Comments
Comment #1
vasikethere is patch that changes the hide/show with class approach.
Comment #2
Stalski CreditAttribution: Stalski commentedWorks like a charm. thx for the patch.
Comment #3
vasikeit doesn't work for maps with 100% width.
but if i add for the css definition (.horizontal-tabs .horizontal-tab-hidden) a width of 100% it seems it works
Comment #4
nils.destoop CreditAttribution: nils.destoop commentedI added the 100% width to the css
Comment #6
gmclelland CreditAttribution: gmclelland commentedJust a headsup for anyone having problems, this could be a jqueryui issue.
See here
http://docs.jquery.com/UI/API/1.8/Tabs#...my_slider.2C_Google_Map.2C_sIF...