CMS MADE SIMPLE FORGE

CGGoogleMaps

 

[#8399] Map not showing

avatar
Created By: Kees van Hoekelen (keeze)
Date Submitted: Fri Sep 14 18:39:34 -0400 2012

Assigned To: Robert Campbell (calguy1000)
Version: 2.4.2
CMSMS Version: 1.11.1
Severity: Critical
Resolution: Fixed
State: Closed
Summary:
Map not showing
Detailed Description:
Installed a clean (first) installation of CGGoogleMaps, made a map and added a
point.

Firefox gives the following error:

Tijdstempel (Timestamp): 8-9-2012 22:16:08
Fout (Error): SyntaxError: missing : after property id
Bronbestand (Source): http://mamatotzo.demoversie.com/index.p ... ikbaarheid
Regel (line): 182, Kolom (Column): 1091
Broncode (Source):
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];}


History

Comments
avatar
Date: 2012-09-28 04:37
Posted By: bess (bess)

Soluce in french (sorry, but it's not complicate) 

http://www.cmsmadesimple.fr/forum/viewtopic.php?pid=30512#p30512


change 

  var marker = new google.maps.Marker({
    map: mapObj,
    title: title,
    map_instance = mapInstance;
    alias = name;
    position: new google.maps.LatLng(lat,lon)
  });

to 

var marker = new google.maps.Marker({
    map: mapObj,
    title: title,
    map_instance : mapInstance,
    alias : name,
    position: new google.maps.LatLng(lat,lon)
  });

in 3 differents localisations

in file  ./modules/CGGoogleMaps/templates/orig_js_template.tpl
in module panel admin , default template > + Javascript défault template
in all your maps already created : Javascript template
      
avatar
Date: 2012-09-28 11:11
Posted By: Robert Campbell (calguy1000)

js errors fixed in svn.
      
Updates

Updated: 2013-03-30 11:42
state: Open => Closed

Updated: 2012-09-28 11:11
resolution_id: 5 => 7

Updated: 2012-09-14 18:40
resolution_id: => 5
assigned_to_id: 100 => 106