Uncaught ReferenceError: google is not defined

Phoca Maps - displaying maps in Joomla! CMS
bragamiguel
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 29 Apr 2015, 21:21

Uncaught ReferenceError: google is not defined

Post by bragamiguel »

Dear Phoca team,

Thank you in advance for your attention and awsome extensions!
I've been working on a Joomla 3.4 website and i recently installed your Maps component.
Everything seems pretty normal, i'm an experienced joomla user and a template developer beginner so i still don't understand why is the component not working. I usually get "Uncaught ReferenceError: google is not defined" and the Map does not appears...
Can you help me sort this out?

Best regards,
Miguel
bragamiguel
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 29 Apr 2015, 21:21

Re: Uncaught ReferenceError: google is not defined

Post by bragamiguel »

Is anyone experiencing this?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Uncaught ReferenceError: google is not defined

Post by Jan »

Hi, which version of Phoca Maps do you use?

The latest, working here: https://www.phoca.cz/joomla3demo/phoca-maps-demo

Check your site for another javascript errors, maybe some javascript error previously set can somehow influnce the loading of map :idea:

Jan
If you find Phoca extensions useful, please support the project
bragamiguel
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 29 Apr 2015, 21:21

Re: Uncaught ReferenceError: google is not defined

Post by bragamiguel »

Hi Jan,

Thanks for your attention! I did exactly what you suggested; I had the latest version of Phoca Maps when i got the "Uncaught ReferenceError: google is not defined" but i finally solved this issue last night.

It was in fact a jQuery conflict; i'm not a programmer but i've been developing Joomla responsive templates with custom Bootstrap and jQuery scripts (easing effects for dropdown menus or one page responsive websites) and it has been challenging. I'm learning a lot just by googling and a came across with a solution.

In order to help other people who might get the same error let me explain insted of using $(document).ready(function () { use this snippet:

jQuery(function($) {
// Your code.
})

Voilá, no more conflits!


Miguel
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Uncaught ReferenceError: google is not defined

Post by Jan »

Hi, thank you very much for the info.

Jan
If you find Phoca extensions useful, please support the project
Post Reply