Page 1 of 1

GCGooglemaps not working

Posted: Sat Sep 08, 2012 8:22 pm
by KC
I just installed GCGooglemaps (not for the first time), but it does not work.

Created a map, marker and inserted it in a page.

FF gives me the folowing error:

Tijdstempel: 8-9-2012 22:16:08
Fout: SyntaxError: missing : after property id
Bronbestand: http://mamatotzo.demoversie.com/index.p ... ikbaarheid
Regel: 182, Kolom: 1091
Broncode:
var map_options={mapTypeId:google.maps.MapTypeId.HYBRID,navigationControl:true,navigationControlOptions:{style:google.maps.NavigationControlStyle.DEFAULT},scaleControl:false,streetViewControl:false,mapTypeControl:true,mapTypeControlOptions:{style:google.maps.MapTypeControlStyle.DEFAULT},center:new google.maps.LatLng(52.049903,4.281784),zoom:7};var mapObj=new google.maps.Map(mapElem,map_options);var infoWindow=new google.maps.InfoWindow();var directionsService=new google.maps.DirectionsService();var directionsDisplay=new google.maps.DirectionsRenderer();var icons=new Array();icons['dd-end']=new google.maps.MarkerImage('modules/CGGoogleMaps/icons/dd-end.png');jQuery('#cggm_map_defn_'+mapInstance+' div.cggm_map_markers > div.cggm_marker').each(function(){var name=jQuery(":input[name='name']",this).val();var lat=jQuery(":input[name='latitude']",this).val();var lon=jQuery(":input[name='longitude']",this).val();var icon=jQuery(":input[name='icon']",this).val();var title=jQuery(":input[name='title']",this).val();var marker=new google.maps.Marker({map:mapObj,title:title,map_instance=mapInstance;alias=name;position:new google.maps.LatLng(lat,lon)});if(icons!=undefined&&icon!=undefined){marker.icon=icons[icon];}

CMSM version 1.11.1, CGGooglemaps version 2.4.2

Anyone any clue?

Cheers,
Kees

Re: GCGooglemaps not working

Posted: Sun Sep 09, 2012 6:07 am
by velden
I suppose you should look why those bold properties are written with a '=' in stead of ':'
var map_options={mapTypeId:google.maps.MapTypeId.HYBRID,navigationControl:true,navigationControlOptions:{style:google.maps.NavigationControlStyle.DEFAULT},scaleControl:false,streetViewControl:false,mapTypeControl:true,mapTypeControlOptions:{style:google.maps.MapTypeControlStyle.DEFAULT},center:new google.maps.LatLng(52.049903,4.281784),zoom:7};var mapObj=new google.maps.Map(mapElem,map_options);var infoWindow=new google.maps.InfoWindow();var directionsService=new google.maps.DirectionsService();var directionsDisplay=new google.maps.DirectionsRenderer();var icons=new Array();icons['dd-end']=new google.maps.MarkerImage('modules/CGGoogleMaps/icons/dd-end.png');jQuery('#cggm_map_defn_'+mapInstance+' div.cggm_map_markers > div.cggm_marker').each(function(){var name=jQuery(":input[name='name']",this).val();var lat=jQuery(":input[name='latitude']",this).val();var lon=jQuery(":input[name='longitude']",this).val();var icon=jQuery(":input[name='icon']",this).val();var title=jQuery(":input[name='title']",this).val();var marker=new google.maps.Marker({map:mapObj,title:title,map_instance=mapInstance;alias=name;position:new google.maps.LatLng(lat,lon)});if(icons!=undefined&&icon!=undefined){marker.icon=icons[icon];}

Re: GCGooglemaps not working

Posted: Sun Sep 09, 2012 7:07 pm
by KC
Weird,

This code is in the original js-template..

Cheers,
Kees

Re: GCGooglemaps not working

Posted: Fri Sep 14, 2012 10:23 pm
by KC
I didn't solve the problem yet.

Just installed an older version of CGGM. Had to clean the installmap first cause the uninstall and remove option in the backend did not clean everything.

Cheers,
Kees

That's why I leave this topic open, I still hope for an solution, will subit a bug-report to.