Hi, I had just finished writing a Google map project that integrated in to Community Server and Telligent Community. It consisted of a Windows service that periodicly geo coded the location of members and stored them in a database. That part works fine. The front end worked fine for about a week and then broke all of a sudden (around the 15th of December I think.)
FireBug gives me the error 'E is not defined' this isn't very helpful, is there a way to view Google's javascript in an un-minified form? The symptoms of this are that the map displays properly but the zoom/ navigate gadgets are not shown, the map cannot be dragged and markers cannot be clicked. The code can be viewed here: http://www.emrupdate.com/map/ in its most basic form it looks like this: <script type="text/javascript"> //<![CDATA[ function CallServer(arg, context){ WebForm_DoCallback('ctl00$bcr $ctl00',arg,ReceiveServerData,context,null,false);}//]]> </script> <script type="text/javascript"> function ReceiveServerData(rValue) { // Run the JS returned from the server. // This sets the map up/gets recent posts. var run = rValue.toString().replace('map_', '').replace ('posts_', ''); eval(run); } function GetMembers() { // Get the selected state and initiate a client callback. var ddl = document.getElementById ('ctl00_bcr_ctl00_ddlStates'); var location = ddl[ddl.selectedIndex].value; CallServer('getusers_' + location, 'getusers'); return false; } function GetPosts(id, uid) { CallServer('getposts_' + id + ',' + uid, 'getposts'); return false; } </script> <script type="text/javascript" src="http://maps.google.com/maps? file=api&v=2&sensor=false&key=ABQIAAAAPuyEpPazBhLVwtGiSlrbBhT7F5Ok1zX- NTZdsx2yvHUtT9o9bBR5bNJsHNwkWaT67SmI4iZ2ksgeOg"></script><script src="http://maps.gstatic.com/intl/en_ALL/mapfiles/193c/maps2.api/ main.js" type="text/javascript"></script> <script type="text/javascript" src="http://maps.gstatic.com/intl/ en_ALL/mapfiles/184a/maps2.api/main.js"></script> <style type="text/css"> .userpopup.location { float:right; font-size: small; } .userpopup { width:300px; } </style> <select name="ctl00$bcr$ctl00$ddlStates" id="ctl00_bcr_ctl00_ddlStates" onchange="javascript:GetMembers();" style="width: 635px;"> <option value="Angola, ">Angola </option> LOTS OF LIST ITEMS REMOVED TO SAVE SPACE </select> <div id="ctl00_bcr_ctl00_gmap" style="width: 635px; height: 450px; position: relative; background-color: rgb(229, 227, 223);"> </div> <noscript><b>JavaScript must be enabled in order for you to use Google Maps.</b> However, it seems JavaScript is either disabled or not supported by your browser. To view Google Maps, enable JavaScript by changing your browser options, and then try again. </noscript> <script type="text/javascript"> //<![CDATA[ function myunescape (str) { str = "" + str; while (true) { var i = str . indexOf ('+'); if (i < 0) break; str = str . substring (0, i) + '%20' + str . substring (i + 1, str . length); } return unescape (str); } if (GBrowserIsCompatible()) { function createMarker(point,html) { var marker = new GMarker(point); var rnd = Math.floor(Math.random()*10000); var uid = html.toString().substr(0,html.toString().indexOf ('|')); var _html = html; GEvent.addListener(marker, "click", function() { debugger; var singleMember = (html.toString().indexOf('|') < html.toString().indexOf('<') && html.toString().indexOf('|') > -1) if (singleMember) { _html = html.toString().substr(html.toString().indexOf ('|')+1); marker.openInfoWindowTabsHtml(new Array( new GInfoWindowTab('Information',_html), new GInfoWindowTab('Posts', myunescape('<div id="a' + rnd + '>Loading...</div>')))) window.posts = ''; GetPosts('a' + rnd, uid); var timer = setInterval(function() { if (window.posts != '') { document.getElementById('a' + rnd).innerHTML = window.posts; clearInterval(timer); } },100); window.posts = ''; } else { marker.openInfoWindowHtml(_html); } }); return marker; } // Display the map, with some controls and set the initial location var map = new GMap2(document.getElementById ('ctl00_bcr_ctl00_gmap')); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl()); map.setCenter(new GLatLng(43.907787, -79.359741), 2); map.clearOverlays(); } // display a warning if the browser was not compatible else { alert("Sorry, the Google Maps API is not compatible with this browser"); } </script> The above code does nothing but display and center the map, however it still errors. If the drop down list is changed then additional javascript code is generated server side. Any help would be great. I don't think that I have changed anything that would break it. I can only assume that Google changed some code at their end or something? Thanks, Joe
-- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
