Page 1 of 2

Joomla 2.5 - Markers doesn't show

Posted: 27 Sep 2014, 08:13
by sneakyX
Hello,

I have a problem. I have two installations of joomla (two different customers), and I don't know since when, the marks doesn't show on their maps.
The maps have the correct size and are also on the correct zoom and show the correct part, but there is no marker and no routing option...

Did the google api change?

Thanks for Your help.

sneakyX

Re: Joomla 2.5 - Markers doesn't show

Posted: 28 Sep 2014, 00:29
by Jan
Hi, testing now, see now problem, when you see your html source code, are you able to see the markers information in javascript source code?
https://www.phoca.cz/joomlademo/phoca-maps

Jan

Re: Joomla 2.5 - Markers doesn't show

Posted: 29 Sep 2014, 10:41
by sneakyX
Hi, thanks for Your fast answer.
Here ist the code sniplet:

Code: Select all

google.load("maps", "3", {other_params:"sensor=false&language=de"});
 google.load("search", "1", {"language":"de"});

 var tstPhocaMap = document.getElementById('phocaMap');
 var tstIntPhocaMap;
 var mapPhocaMap;


 function CancelEventPhocaMap(event) { 
   var e = event; 
   if (typeof e.preventDefault == 'function') e.preventDefault(); 
   if (typeof e.stopPropagation == 'function') e.stopPropagation(); 
   if (window.event) { 
      window.event.cancelBubble = true; /* for IE */
      window.event.returnValue = false; /* for IE */
   } 
 }

 function CheckPhocaMap() {
   if (tstPhocaMap) {
      if (tstPhocaMap.offsetWidth != tstPhocaMap.getAttribute("oldValue")) {
         tstPhocaMap.setAttribute("oldValue",tstPhocaMap.offsetWidth);
             if (tstPhocaMap.getAttribute("refreshMap")==0) {
                if (tstPhocaMap.offsetWidth > 0) {
                   clearInterval(tstIntPhocaMap);
                   getPhocaMap();
                  tstPhocaMap.setAttribute("refreshMap", 1);
                } 
             }
         }
     }
 }

 function getPhocaMap(){
   if (tstPhocaMap.offsetWidth > 0) {

 var phocaLatLng = new google.maps.LatLng(51.03621279582444, 8.389434814453125);
 var phocaOptions = {
   zoom: 12,
   center: phocaLatLng,
   mapTypeControl: true,
   mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR, 
   position: google.maps.ControlPosition.TOP },
   navigationControl: true,
   navigationControlOptions: {style: google.maps.NavigationControlStyle.SMALL},
   scaleControl: true,
   scrollwheel: 1,
   disableDoubleClickZoom: 0,
   mapTypeId: google.maps.MapTypeId.ROADMAP
 };

mapPhocaMap = new google.maps.Map(document.getElementById('phocaMap'), phocaOptions);
 google.maps.event.addDomListener(tstPhocaMap, 'DOMMouseScroll', CancelEventPhocaMap);
 google.maps.event.addDomListener(tstPhocaMap, 'mousewheel', CancelEventPhocaMap);   }
 }

 function initialize() {
   tstPhocaMap.setAttribute("oldValue",0);
   tstPhocaMap.setAttribute("refreshMap",0);
   tstIntPhocaMap = setInterval("CheckPhocaMap()",500);
 }

 google.setOnLoadCallback(initialize);
I can't find anything about the markers...

Re: Joomla 2.5 - Markers doesn't show

Posted: 30 Sep 2014, 15:45
by Jan
Hi, I don't see any marker there :idea: Is your marker published and has right longitude and latitude :idea:

Jan

Re: Joomla 2.5 - Markers doesn't show

Posted: 02 Oct 2014, 15:04
by sneakyX
Well, it is very strange. Last time I worked on that page, the markers were there (months ago). I'm not sure if it has something to do with the last update of joomla. I'm going to make a new map with new markers, maybe this will help. I'll post my answer soon.

Thanks.
sneakyx

Re: Joomla 2.5 - Markers doesn't show

Posted: 04 Oct 2014, 11:50
by Jan
Ok :idea:

Jan

Re: Joomla 2.5 - Markers doesn't show

Posted: 04 Oct 2014, 14:53
by sneakyX
Well, I made a new map, made new markers and I updated the joomla core to version 2.5.27.
It still doesn't work.

The map and the markers are published...
Any Ideas?

sneakyx

Re: Joomla 2.5 - Markers doesn't show

Posted: 05 Oct 2014, 22:36
by Jan
Hi, then only idea is to send me the administration logins so I can take a look at it :idea:

Jan

Re: Joomla 2.5 - Markers doesn't show

Posted: 09 Oct 2014, 15:11
by sneakyX
Well, I try to put the whole page on another server with the same os, if it doesn't work, I'll send you the login. Can You tell me where I should send the login?

sneakyx

Re: Joomla 2.5 - Markers doesn't show

Posted: 11 Oct 2014, 18:30
by Jan
Hi, yes, I can take a look at it.

Jan