Google Maps (with marker) Cornerstone from Visual Composer

As instructed by Staff, I open my own topic, not cluttering the other one with Google Api Key problem ( https://theme.co/apex/forum/t/google-maps-api-problem/33133/20 )

Using Theme X Pro 2.4.0 and Visual Composer 5.4.7.
Trying to add the map on page http://adonis.dev.kawa-synergy.com/contact/ and as seen on Developer Console the message “You have included the Google Maps API multiple times on this page. This may cause unexpected errors.” is shown aside a Uncaught TypeError: Cannot read property ‘lat’ of undefined error.

Can you please help me remove this error, all plugins but VC are disabled.

Hi There @RivmanBx

Thanks for writing in! Upon testing, I can confirm that your Google Map is functioning properly on your referenced page.

But I also see the error message on your console log. Is it possible to re-generate an API key and update your page to see if that helps.

Also you may have other plugins in your site which may have Google Maps functionality. In that case you will need to disable Google Maps functionality.

For example, plugins like Ubermenu, Modern Events has Google API functionality which you can turn off in their respective settings.

Let us know how it goes.
Thanks!

Hello,
Thanks for your answer. I tested with all the plugins (all but Visual Composer) disabled and the error persists.
I can’t put the API Key directly in Visual Composer shortcode, so I do make a page with Cornerstone, then copy the generated shortcode then in Visual Composer I make Html Block and paste the code to show the map.
Any other ways to do this ?
I did generate my own API key.

Many thanks.

Hi @RivmanBx,

Yes, the shortcode will work within HTML element. Please check this

http://demo.theme.co/integrity-1/shortcodes/map/

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.