Map not showing

Phoca Maps - displaying maps in Joomla! CMS
Wanderfalke
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 09 Oct 2010, 22:47

Re: Map not showing

Post by Wanderfalke »

Due to user command I had to downgrade phocamaps to version 1.0.5.
Now it's working fine.
1303i
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 11 Mar 2010, 14:32

Re: Map not showing

Post by 1303i »

Thank you! I had the same problem and this code has resolved it!
senza wrote:I have installed component and plugin and all seems ok but the maps are not displayed, after some search I found that in my joomla page there is not the code to the google script

Code: Select all

<script src="http://www.google.com/jsapi" type="text/javascript"></script>
So I put

Code: Select all

function startJScData() {

		return '<script src="http://www.google.com/jsapi" type="text/javascript"></script><br /><script type="text/javascript">//<![CDATA['."\n";

	}
instead of

Code: Select all

function startJScData() {

		return '<script type="text/javascript">//<![CDATA['."\n";

	}
in file administrator/components/com_pochamaps/helpers/phocamapsmap.php at line 95 and now the maps are ok, I hope that this help.
Alex_Faerber
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 07 Jun 2011, 12:47

Re: Map not showing

Post by Alex_Faerber »

Hi,
I have a similar Problem - the Map is not showing in the article - surprisingly the Popup is working and displaying the map!
I have tried the procedure replacing the code in phocamapsmap.php but without success.

Any other idea how I can bring the component to work??

The site is www.wutach.org

Thanks!
Alexander
codeless
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 02 Mar 2011, 13:34

Re: Map not showing

Post by codeless »

Same here. No map. Just a box where it should be. Plugin is enabled. Using PHP 5+. Tried replacing code mentioned above. No luck :x
bkleine
Phoca Member
Phoca Member
Posts: 14
Joined: 18 Feb 2011, 09:33

Re: Map not showing

Post by bkleine »

Alex_Faerber wrote:Hi,
I have a similar Problem - the Map is not showing in the article - surprisingly the Popup is working and displaying the map!
I have tried the procedure replacing the code in phocamapsmap.php but without success.

Any other idea how I can bring the component to work??

The site is http://www.wutach.org

Thanks!
Alexander
Hi, Alexander!

I opened your site and I got an error indicating that your api-key is probably not correct, that is it may be generated for another website. I suggest that you try to get another key for www.wutach.org.

Greetings from your neighbourhood!

Bernhard
bkleine
Phoca Member
Phoca Member
Posts: 14
Joined: 18 Feb 2011, 09:33

Re: Map not showing

Post by bkleine »

I looked that I had a similar problem and therefore I tried to follow these steps.
senza wrote: 2)download from your site this file "administrator/components/com_pochamaps/helpers/phocamapsmap.php", open it and search this code (around line 95)

Code: Select all

function startJScData() {

      return '<script type="text/javascript">//<![CDATA['."\n";

   }
3) replace this code with the code that you have copied before, save and upload the file (in "administrator/components/com_pochamaps/helpers/phocamapsmap.php")


This method worked for me, I hope it can help you too
To my surprise I could not find the file phocamapsmap.php at the place, which helped to solve my problem. I had copied the whole joomla installation to a another folder and my links still pointed to the old installation. When I renamed the older folder, I could see the problem and reinstall phocamaps component and plugin as well as googlemap plugin. Thus I would like to thank here for pointing me to the correction of my errors.

Cheers
Bernhard
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