By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,118 Members | 1,134 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,118 IT Pros & Developers. It's quick & easy.

You have included the Google Maps API multiple times on this page. This may cause....

matheussousuke
100+
P: 249
In my page: http://sitesdemo.mghospedagem.com/iv...s/3/33209.html

I tried disabling a few javascript related to Google Maps, but Chrome Console is still pointing me the same errors, saying I have multiple instances of Google maps loaded.

I'm getting errors like not calculating the shipping, or not being able to use the map, blah blah blah.

Can anyone help me find what part of the javascript I have to edit to fix this?

Here is the log:

Expand|Select|Wrap|Line Numbers
  1. Failed to load resource: the server responded with a status of 404 (Not Found)
  2.     main.js:61 Uncaught TypeError: undefined is not a function
  3.     main.js:60 You have included the Google Maps API multiple times on this page. This may cause unexpected errors.main.js:60 yl
  4.     33209.html:9 Uncaught ReferenceError: J is not defined
  5.     VM603:10 Uncaught TypeError: Cannot set property 'geometry' of undefined
  6.     33209.html:1 Uncaught ReferenceError: J is not defined
  7.     33209.html:9 Uncaught ReferenceError: J is not defined
  8.     33209.html:3 Uncaught ReferenceError: J is not defined
  9.     33209.html:6 Uncaught ReferenceError: J is not defined
  10.     http://sitesdemo.mghospedagem.com/ivam-entregas/3/33209/css Failed to load resource: the server responded with a status of 404 (Not Found)

Here the javascript file described on the log:
https://jsfiddle.net/x24e2px2/
Apr 1 '15 #1
Share this Question
Share on Google+
1 Reply


matheussousuke
100+
P: 249
Solved, just had to remove all copies of Google maps files and leave only the original url: http://maps.googleapis.com/maps/api/js?sensor=false
Apr 1 '15 #2

Post your reply

Sign in to post your reply or Sign up for a free account.