GCGooglemaps not working

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
KC
Forum Members
Forum Members
Posts: 33
Joined: Fri Feb 02, 2007 12:28 am

GCGooglemaps not working

Post 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
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: GCGooglemaps not working

Post 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];}
KC
Forum Members
Forum Members
Posts: 33
Joined: Fri Feb 02, 2007 12:28 am

Re: GCGooglemaps not working

Post by KC »

Weird,

This code is in the original js-template..

Cheers,
Kees
KC
Forum Members
Forum Members
Posts: 33
Joined: Fri Feb 02, 2007 12:28 am

Re: GCGooglemaps not working

Post 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.
Post Reply

Return to “Modules/Add-Ons”