Drupal.geolocation.maps.delay is not a function

Created on 27 February 2024, about 1 year ago
Updated 15 March 2024, about 1 year ago

Problem/Motivation

When using the 'Geolocation - Formatter - Map' display formatter with Google Maps and Conditional initialization set to either button or custom the browser console logs:

TypeError: Drupal.geolocation.maps.delay is not a function
at geolocation-map.js?v=8.x-3.x:219:43
at new Promise (<anonymous>)
at geolocation-map.js?v=8.x-3.x:210:20 'Something failed during map init.'

And the button to load the map doesn't appear. If conditional initialization isn't used the map renders normally.

The JS file url looks like I have version 8.x-3.x but this is only because the library file is specifying the older release (I know this has been fixed in the dev branch)

🐛 Bug report
Status

Fixed

Version

4.0

Component

GoogleMapsAPI

Created by

🇬🇧United Kingdom omahm Belfast

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024