Body: <p>Using Drupal 7. Maps do not display in CiviEvent, although they display fine on the Drupal site.</p>
  <p>Console displays the below. Any ideas? Thanks in advance...</p>
  <blockquote>
  <p>message: &quot;initMap is not a function&quot; ​ name: &quot;InvalidValueError&quot; ​
  stack:
  &quot;ne@https://maps.googleapis.com/maps/api/js?&amp;sensor=false&amp;callback=initMap:70:72\n_.oe@https://maps.googleapis.com/maps/api/js?&amp;sensor=false&amp;callback=initMap:70:182\nTj@https://maps.googleapis.com/maps/api/js?&amp;sensor=false&amp;callback=initMap:143:238\nUj/&lt;@https://maps.googleapis.com/maps/api/js?&amp;sensor=false&amp;callback=initMap:143:125\npromise
  callback*Uj@https://maps.googleapis.com/maps/api/js?&amp;sensor=false&amp;callback=initMap:143:107\ngoogle.maps.Load@https://maps.googleapis.com/maps/api/js?&amp;sensor=false&amp;callback=initMap:14:12\n@https://maps.googleapis.com/maps/api/js?&amp;sensor=false&amp;callback=initMap:257:436\n@https://maps.googleapis.com/maps/api/js?&amp;sensor=false&amp;callback=initMap:257:448\n&quot;</p>
  </blockquote>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-09-22T14:57:42.183Z
Comments.Text: can you clear civicrm cache and delete template_c directory? Also do check Resource URL again
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-09-22T18:53:10.760Z
Comments.Text: Thanks, Pradeep - no difference. I'm not sure what I'd be looking for when it comes to the Resource URL - it looks like the default. I did miss the beginning of the console error, though - it's:
  
  Uncaught (in promise) 
  Object { message: "initMap is not a function", etc.
  
  Perhaps that helps? Thanks for your response!
Comments.UserDisplayName: Billyjames
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-09-24T19:42:05.483Z
Comments.Text: I'm also seeing NoApiKeys and SensorNotRequired warnings. Again, I know the key is working because it works fine in Drupal. Ugh.
Comments.UserDisplayName: Billyjames
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-08-15T10:20:52.993Z
Comments.Text: I had the same error and warnings, my issue was missing latitude and longitude values (geocoding wasn't happening), the civi logs were helpful.
Comments.UserDisplayName: Aiden
Tags: <civievent><location><google>
Title: Google mapping: initMap is not a function error in 5.29.1
ThreadText: # Google mapping: initMap is not a function error in 5.29.1
  
  (Asked by: username_0 on 2020-09-22)
  
  Using Drupal 7. Maps do not display in CiviEvent, although they display fine on the Drupal site.
  
  Console displays the below. Any ideas? Thanks in advance...
  
  > message: "initMap is not a function" ​ name: "InvalidValueError" ​
  > stack:
  > "ne@https://maps.googleapis.com/maps/api/js?&sensor=false&callback=initMap:70:72\n\_.oe@https://maps.googleapis.com/maps/api/js?&sensor=false&callback=initMap:70:182\nTj@https://maps.googleapis.com/maps/api/js?&sensor=false&callback=initMap:143:238\nUj/<@https://maps.googleapis.com/maps/api/js?&sensor=false&callback=initMap:143:125\npromise
  > callback\*Uj@https://maps.googleapis.com/maps/api/js?&sensor=false&callback=initMap:143:107\ngoogle.maps.Load@https://maps.googleapis.com/maps/api/js?&sensor=false&callback=initMap:14:12\n@https://maps.googleapis.com/maps/api/js?&sensor=false&callback=initMap:257:436\n@https://maps.googleapis.com/maps/api/js?&sensor=false&callback=initMap:257:448\n"
  
  **Tags:** civievent, location, google
  
  > **Comments:**
  > **username_1**: can you clear civicrm cache and delete template_c directory? Also do check Resource URL again  
  > **username_0**: Thanks, Pradeep - no difference. I'm not sure what I'd be looking for when it comes to the Resource URL - it looks like the default. I did miss the beginning of the console error, though - it's:  Uncaught (in promise)  Object { message: "initMap is not a function", etc.  Perhaps that helps? Thanks for your response!  
  > **username_0**: I'm also seeing NoApiKeys and SensorNotRequired warnings. Again, I know the key is working because it works fine in Drupal. Ugh.  
  > **username_2**: I had the same error and warnings, my issue was missing latitude and longitude values (geocoding wasn't happening), the civi logs were helpful.  
  
  ---
  
  ## 0 answers
  
  