Hello,
I had exactly the same problem with Phoca Map component 1.0.4 with Joomla 1.5.14.
After the installation of Phoca Map and the generation of Key API Google Map, all was working fine and I was able to create one map by clicking on the 'coordinate' buttom in the component.
One day after, when I wanted to update my MAP, I always had a blank window after clicking on 'coordinate' button.
As my site was local and the Key API was generated with the future name of the site, I generated again a new key API Google Map for site
http://localhost/ and update it in Phoca Map parameters but the problem was the same. I had the problem to update my map and also to create a new one.
.
With the usage of Firebug, I was able to find an error message in the console output.
The error message was "Sorry, server was unable to geocode that address" and came from function 'addAddressToMap' located in file \administrator\components\com_phocamaps\views\phocamapsgmap\tmpl\default.php.
function addAddressToMap(response) {
mapPhocaMap.clearOverlays();
if (!response || response.Status.code != 200)
window.alert('<?php echo JText::_("Sorry, server was unable to geocode that address") ?>');
} else {
place = response.Placemark[0];
...
In fact, I was in the case '!response' but I don't understand why ?
In the Apache log file, I have one http result with return code 200 (OK) when clicking on 'coordinate' buttom
127.0.0.1 - - [25/Nov/2009:11:30:36 +0100] "GET /hockey/administrator/index.php?option=com_phocamaps&view=phocamapsgmap&tmpl=component&lat=47.284178301922665&lng=-1.4812231063842773&zoom=15&type=map HTTP/1.1" 200 6406
To solve my problem, I have updated the default.php file. I put in comments the lines corresponding with the 'if' and only keep the lines of the 'else' case.
After that all is working fine and I am now able to use again the 'coordinate' buttom to 'update' or 'create' a new map.
Perhaps, this information will help others users of Phoca Map which had the same problem.