Tagged: google maps api
January 25, 2018 at 9:00 pm #34069
I am using an additional map plugin (because it has a feature that WP Google Maps lacks). On pages where this other map plugin displays, I am getting a fatal error: included Google Maps API multiple times. I only get this error on pages where the other plugin displays. I do not get the error on pages where I use WP Google Maps. How can I modify the plugin code so that it loads the Google Maps API on certain pages? Turning off the loading of the Google Maps API entirely is not an option.January 26, 2018 at 3:12 pm #34102[email protected]Member
Thanks for getting in touch with us.
WP Google Maps should already only load the Google Maps API on pages where the map is included.
Could I please ask you to confirm if you have the latest versions installed?
DylanJanuary 26, 2018 at 6:54 pm #34113
Yes, I verified that my plugins are the latest. Here’s what I have:
WP Google Map Plugin: Version 4.0.2
WP Google Map Pro: Version 4.0.7
Both of these are activated. (Initially, I only had the Pro version activated, but that doesn’t seem to make a difference for the API duplication.)
e-January 27, 2018 at 12:28 am #34116
One more update to this thread … I added some code to my child’s theme functions.php that dequeues the wpgmp-google-api script when it’s on a page that uses the other map plugin.
It would be nice if I didn’t have to do this. I’m not sure why the plugin loads stuff onto a page when it’s not needed.January 29, 2018 at 7:23 am #34137[email protected]Member
Sorry for the delay in response over the weekend.
WP Google Maps does not load the API on pages where the map is not added in the latest releases.
It seems like you are using a different plugin, as our latest versions are:
WP Google Maps V6.0.4
WP Google Maps Pro V6.19
Can you please confirm if you are using WP Google Maps – https://wordpress.org/plugins/wp-google-maps/ – so that I can assist you further?
Thanks for your time in this.
- You must be logged in to reply to this topic.