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"

  • can you clear civicrm cache and delete template_c directory? Also do check Resource URL again Sep 22 '20 at 14:57
  • 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!
    – Billyjames
    Sep 22 '20 at 18:53
  • I'm also seeing NoApiKeys and SensorNotRequired warnings. Again, I know the key is working because it works fine in Drupal. Ugh.
    – Billyjames
    Sep 24 '20 at 19:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.