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.
Right now the Google Map specific settings like map type, width, height etc are added directly to the parent form. This bloats up the forms and distracts from what's important. Move the google map settings to a fieldset instead.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2766131-2-move-google-settings-to-fieldset.patch | 11.82 KB | ChristianAdamski |
Comments
Comment #2
ChristianAdamski CreditAttribution: ChristianAdamski as a volunteer commentedHere's a patch.
ATTENTION: you need to reset the map settings after applying this patch.
This is acceptable, as the current settings form is only available in -dev for three weeks or so.
Comment #3
ChristianAdamski CreditAttribution: ChristianAdamski as a volunteer commentedComment #4
ChristianAdamski CreditAttribution: ChristianAdamski as a volunteer commentedComment #6
shanegarnett CreditAttribution: shanegarnett as a volunteer and commentedFound an error when troubleshooting this :
Line 176 of geolocation.js needs to be changed from
map.settings = $.extend(Drupal.geolocation.defaultSettings(), map.settings);
to
map.settings.google_map_settings = $.extend(Drupal.geolocation.defaultSettings(), map.settings);
Was getting a javascript error otherwise.
Comment #7
ChristianAdamski CreditAttribution: ChristianAdamski as a volunteer commentedComment #8
ChristianAdamski CreditAttribution: ChristianAdamski as a volunteer commentedCould you resave your view settings and try again? Is this still happening?
Comment #9
ChristianAdamski CreditAttribution: ChristianAdamski as a volunteer commentedComment #10
ChristianAdamski CreditAttribution: ChristianAdamski as a volunteer commentedSetting this back to fixed. JS issue will be handled in #2768813: Geocoder Widget: "Cannot read property 'height' of undefined"
Comment #11
ChristianAdamski CreditAttribution: ChristianAdamski as a volunteer commented