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.
I've noticed a bug when using the Google Map Field inside a Paragraphs type giving me a ReferenceError in the Firebug Console with the message "google is not defined".
I'm not entirely sure but I think the bug is caused by the fact that the javascripts are loaded in dynamically when adding a new paragraph that has the gmap field.
In the same site I also created a content type with a Google Map Field where the field is visible from the start and there everything works fine.
Is there something that can be done from within Google Map Field or is this a Paragraphs issue?
Comment | File | Size | Author |
---|---|---|---|
#3 | google_is_not_defined-2790295-3.patch | 373 bytes | pauloamgomes |
Comments
Comment #2
tommyblopes CreditAttribution: tommyblopes commented+1 I have the same issue with the field placed in a Paragraph.
Comment #3
pauloamgomes CreditAttribution: pauloamgomes at Appnovation commentedAdded core/drupal in the js dependencies for google-map-field-renderer
Comment #4
pauloamgomes CreditAttribution: pauloamgomes at Appnovation commentedComment #5
kmoll CreditAttribution: kmoll at Appnovation for Pfizer, Inc. commentedThe error I get when testing this is "Drupal is not defined" Not "Google is not defined. But I tested with this patch and it fixed the issue. The maps in the paragraph type are displaying properly.
Comment #6
kmoll CreditAttribution: kmoll at Appnovation for Pfizer, Inc. commentedComment #8
pauloamgomes CreditAttribution: pauloamgomes at Appnovation commentedPatch applied to dev version, please review.
Comment #9
pauloamgomes CreditAttribution: pauloamgomes at Appnovation commentedComment #10
pauloamgomes CreditAttribution: pauloamgomes at Appnovation commented