Map not showing

Phoca Maps - displaying maps in Joomla! CMS
rlaux
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 26 Nov 2012, 09:51

Map not showing

Post by rlaux »

Since one of the latest joomla updates my map isn't showing anymore.
Just as in your maps plugin demo, I see an idle box: http://www.rcmarket.net/cmsj/index.php/ ... ing-fields
Component and plugin is on latest version, Api key is initialized.
Any suggestion?
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9451
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Map not showing

Post by Benno »

Hi,
there is a JS error on your site:
"Google Maps API error: RefererNotAllowedMapError https://developers.google.com/maps/docu ... -map-error
Your site URL to be authorized: http://www.rcmarket.net/cmsj/index.php/ ... ing-fields"
Kind regards,
Benno
rlaux
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 26 Nov 2012, 09:51

Re: Map not showing

Post by rlaux »

Hi Benno,
thanks for your answer.
Reviewed api Key in map module, api key and referrer at google but cannot make it.
In Chrome developer tools I see that it doesn't find an API key, but there is also another syntax and InitMapPlgM1 error
(just going to resolve resource errors)

Kind regards
René
mischanimov
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 31 Jul 2017, 16:14

Re: Map not showing

Post by mischanimov »

Greetings. I'm experiencing almost the same problem.

I'm lost since i don't know what to do and i saw the same thing as the previous post but i don't know what to do exactly.

This is the console's result

Code: Select all

contactenos:174 Uncaught ReferenceError: initMapPlgPM1 is not defined
    at initMapsComcontentarticle6 (contactenos:174)
    at js?callback=initMapsComcontentarticle6&key=AIzaSyA7f1rhgoR0rtLxhjzTWT6Jj2VaXWSy1co:98
    at js?callback=initMapsComcontentarticle6&key=AIzaSyA7f1rhgoR0rtLxhjzTWT6Jj2VaXWSy1co:56
    at Object._.Nc (js?callback=initMapsComcontentarticle6&key=AIzaSyA7f1rhgoR0rtLxhjzTWT6Jj2VaXWSy1co:53)
    at Yc (js?callback=initMapsComcontentarticle6&key=AIzaSyA7f1rhgoR0rtLxhjzTWT6Jj2VaXWSy1co:56)
    at js?callback=initMapsComcontentarticle6&key=AIzaSyA7f1rhgoR0rtLxhjzTWT6Jj2VaXWSy1co:139
    at Object.google.maps.Load (js?callback=initMapsComcontentarticle6&key=AIzaSyA7f1rhgoR0rtLxhjzTWT6Jj2VaXWSy1co:21)
    at js?callback=initMapsComcontentarticle6&key=AIzaSyA7f1rhgoR0rtLxhjzTWT6Jj2VaXWSy1co:138
    at js?callback=initMapsComcontentarticle6&key=AIzaSyA7f1rhgoR0rtLxhjzTWT6Jj2VaXWSy1co:139
initMapsComcontentarticle6 @ contactenos:174
(anonymous) @ js?callback=initMapsComcontentarticle6&key=AIzaSyA7f1rhgoR0rtLxhjzTWT6Jj2VaXWSy1co:98
(anonymous) @ js?callback=initMapsComcontentarticle6&key=AIzaSyA7f1rhgoR0rtLxhjzTWT6Jj2VaXWSy1co:56
_.Nc @ js?callback=initMapsComcontentarticle6&key=AIzaSyA7f1rhgoR0rtLxhjzTWT6Jj2VaXWSy1co:53
Yc @ js?callback=initMapsComcontentarticle6&key=AIzaSyA7f1rhgoR0rtLxhjzTWT6Jj2VaXWSy1co:56
(anonymous) @ js?callback=initMapsComcontentarticle6&key=AIzaSyA7f1rhgoR0rtLxhjzTWT6Jj2VaXWSy1co:139
google.maps.Load @ js?callback=initMapsComcontentarticle6&key=AIzaSyA7f1rhgoR0rtLxhjzTWT6Jj2VaXWSy1co:21
(anonymous) @ js?callback=initMapsComcontentarticle6&key=AIzaSyA7f1rhgoR0rtLxhjzTWT6Jj2VaXWSy1co:138
(anonymous) @ js?callback=initMapsComcontentarticle6&key=AIzaSyA7f1rhgoR0rtLxhjzTWT6Jj2VaXWSy1co:139
My site is

Code: Select all

http://skycontrol.com.co/demo/index.php/contactenos
Thanks in advance
mischanimov
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 31 Jul 2017, 16:14

Re: Map not showing

Post by mischanimov »

Update:

So far i authorized the address and the problem remains the same. I issued another API key in order to discard issues about it but still nothing.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Map not showing

Post by Jan »

Hi, before this error, some javascript error is rendered. This can prevent from displaying the ma.

I see the long and lat is wrong too. Try to change your latitude and longitude for the map - for test only. :idea:
Try to hide the markers too. To see, if there is no problem.

Jan
If you find Phoca extensions useful, please support the project
mischanimov
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 31 Jul 2017, 16:14

Re: Map not showing

Post by mischanimov »

Hello. I turned off the marker and the map showed up!
Since i need the marker i need to check it in depth to see what's going on.
I have to leave i pending since my clien has a list of fixes besides the map. Talk later.
mischanimov
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 31 Jul 2017, 16:14

Re: Map not showing

Post by mischanimov »

Hello again, yes the marker's coordinates had a leaked comma breaking everything on the map.
That was all the problem
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Map not showing

Post by Jan »

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