Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #966788
    You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors.
    TypeError: a is undefined[Learn More]
    Google Maps JavaScript API warning: NoApiKeys
    Google Maps JavaScript API warning: RetiredVersion
    Google Maps JavaScript API error: MissingKeyMapError


    I’ve created a custom post type that uses Advanced Custom Fields’ Google Maps field type. Enfold’s inclusion of Google Maps API is conflicting with theirs, and I’m unable to use the map in the Edit Post view. How can I get around this?


    I believe the problem may lie in one of the following files:




    Thank you for using Enfold.

    If you do not need Google Maps, you can manually deactivate it in Enfold option page -> Performance -> Disable Template Builder Elements -> Manually manage loaded elements and disable the element.

    Or delete the folderenfold\config-templatebuilder\avia-shortcodes\google_maps\.

    Best regards,


    Hello Günter,

    For this site, we still need Google Maps. Is it possible to prevent it loading for a specific custom post type?



    In file enfold\framework\php\class-gmaps.php line line 143 there is a filter:

    apply_filters( ‘avf_load_google_map_api_prohibited’, false );

    returning true does not enqueue the script avia_google_maps_front.js which lazy loads avia_google_maps_api.js.

    Hope this helps you. If you are not familiar with filters, let us know.

    Best regards,


    In view of the fact that you can still be warned, I would very much like to deactivate Google Maps in enfold.
    However, I can’t find a way to: Enfold option page -> Performance -> Disable Template Builder Elements (enfold v. 5.61)
    Where can I find the setting?
    Best regards,


    Please go to Enfold Theme Options ▸ Google Services ▸ Google Maps ▸ Enable Google Maps on your site ▸ Disable Google Maps
    We will close this thread as it is quite out-of-date (2018) if you have further questions please open a new thread so we can assist.

    Best regards,

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Multiple Google Maps JavaScript API inclusions error in custom post type’ is closed to new replies.