Page 1 of 1

Uncaught ReferenceError: google is not defined

Posted: 29 Apr 2015, 21:27
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

Re: Uncaught ReferenceError: google is not defined

Posted: 06 May 2015, 16:54
by bragamiguel
Is anyone experiencing this?

Re: Uncaught ReferenceError: google is not defined

Posted: 07 May 2015, 21:04
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

Re: Uncaught ReferenceError: google is not defined

Posted: 08 May 2015, 18:51
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

Re: Uncaught ReferenceError: google is not defined

Posted: 10 May 2015, 23:49
by Jan
Hi, thank you very much for the info.

Jan