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?

CommentFileSizeAuthor
#3 google_is_not_defined-2790295-3.patch373 bytespauloamgomes
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hatznie created an issue. See original summary.

tommyblopes’s picture

+1 I have the same issue with the field placed in a Paragraph.

pauloamgomes’s picture

Added core/drupal in the js dependencies for google-map-field-renderer

pauloamgomes’s picture

Status: Active » Needs review
kmoll’s picture

The 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.

kmoll’s picture

Status: Needs review » Reviewed & tested by the community

  • pauloamgomes authored 65e2271 on 8.x-1.x
    Issue #2790295 hatznie, pauloamgomes: Added core/drupal library in...
pauloamgomes’s picture

Version: 8.x-1.1 » 8.x-1.x-dev
Status: Reviewed & tested by the community » Needs review

Patch applied to dev version, please review.

pauloamgomes’s picture

Status: Needs review » Fixed
pauloamgomes’s picture

Status: Fixed » Closed (fixed)