Hi there,
I posted an issue about collapsible fieldsets and Gmaps stuck inside them, and someone posted a patch to try and fix it. I'm unfortunately not able to port that patch to the 4.7.x version of the module because the javascript is completely different (it's independent of jQuery for instance...blah).
Anyway my form is here, click on Upload Images.
http://www.unitorganizer.com/drupal476/taxonomygallery/upload
If you view source of the page, you can see way down near the bottom that I've attempted to add in some code to deal with this issue, and I'm currently debugging it because there is some error in my code I'm not seeing.
If anyone could help me, because I need this feature to work for both the 5.0 version and the 4.7 version.
Dave
Comments
Comment #1
dwees commentedOops, btw this seems to already work fine in Internet Explorer 6 and 7, it's just the standards based browsers that have issues. For some reason they only show half of the Google map.
Dave
Comment #2
dwees commentedSo I've worked out a solution to the collapsible fieldsets for the Gmaps. It isn't a patch to the module, just an example of how to implement a solution.
I have multiple collapsible fieldsets on the same page, so with each fieldset I need to associate an onclick event (without overriding the default onclick event) which does a map.panTo for the Gmap inside that fieldset.
I created a $form element of the type Mark-up like so:
obviously the form of this needs to be adjusted but the concept is sound.
Now the addEvent and onclick functions are defined in Javascript like so:
where taxonomy_gallery_textchange is a slight modification of the gmap_textchange function (because I have a form with 5 identical fields, and I want all 5 to be controllable by the behaviour of the first form).
Hope this makes sense? I'm sure something similar can be applied to the overall behaviour of the module?
Dave
Comment #3
bdragon commented4.7.x is dead and buried...
Comment #4
dwees commentedThat makes sense.