Page 1 of 1

Markers not showing in IE7 & IE8 (PM2.0.2)

Posted: 01 Nov 2011, 16:49
by webloem
Problem:

Markers are not showing in IE7 & IE8 when using custom icons.

Debug:
After debug the code the following was producing an error (the comma at the end does not belong):

Code: Select all

 var phocaImage3PlgPM1 = new google.maps.MarkerImage('http://maps.google.com/mapfiles/ms/icons/blue-dot.png');
 var phocaImageShape3PlgPM1 = {
   coord: [0,0,25,30],
   type: 'rect',
 };
Solution:
File administrator/components/com_phocamaps/helpers/phocamapsmap.php Line 433 change from

Code: Select all

if (isset($iObjSh[0])) {$js.='   type: \''.$iObjSh[0].'\','."\n";} else { $js.=' \'\',';}
to

Code: Select all

if (isset($iObjSh[0])) {$js.='   type: \''.$iObjSh[0].'\''."\n";} else { $js.=' \'\'';}
Problem solved.

Re: Markers not showing in IE7 & IE8 (PM2.0.2)

Posted: 02 Nov 2011, 14:49
by Jan
Hi, thank you for this info, this is known issue, the problem will be solved in 2.0.3 (is still in waiting modifications :-( )

Jan