Tagged: x
-
AuthorPosts
-
August 3, 2016 at 8:54 am #1115401
mike-moonrayParticipantAs the subject says, both WP Property and X are loading the Google Maps api which is causing all the maps on the site to break.
The map shows “Oops! Something went wrong.” and the console displays the following two errors.
“You have included the Google Maps API multiple times on this page. This may cause unexpected errors.”
“Google Maps API error: MissingKeyMapError https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error”I’ve added a Google Maps API Key to the WP Property plugin, so I believe the missing API key error is caused by using the Cornerstone maps shortcode.
I need to disable the loading of the Google Maps api, or detect if it’s being loaded by another plugin.
August 3, 2016 at 9:59 am #1115482
ChristianModeratorHey Mike,
Please try not to set the Google Maps API when you’re using the Google Maps element. We’re sorry but there’s no way to detect. That might be possible with custom development but that falls outside the scope of our support.
Thanks.
August 3, 2016 at 10:02 am #1115486
RupokMemberHi there,
Thanks for writing in! It sounds like you might be having an issue with a third party plugin or script. Regretfully, we cannot provide support for third party plugins or scripts as our support policy in the sidebar states due to the fact that there is simply no way to account for all of the potential variables at play when using another developer’s plugin or script. Because of this, any questions you have regarding setup, integration, or troubleshooting any piece of functionality that is not native to X will need to be directed to the original developer.
Thank you for your understanding.
August 4, 2016 at 8:35 am #1117257
mike-moonrayParticipantWhere can I find the code that calls the Maps API within the X theme itself?
August 4, 2016 at 12:08 pm #1117553
RupokMemberHi there,
You can’t edit the theme as it will be overwritten when you update. Your plugin should have control to disable the script. You can follow this user’s feedback who faced same issue – https://community.theme.co/forums/topic/you-have-included-the-google-maps-api-multiple-times-on-this-page/#post-302899
Thanks!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1115401 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
