we are facing a problem with our google map implementation. We see an
empty map with no points. This was working until this morning, it
suddenly stopped working. I got a grey blank map!
We see this javascript error- 'a has no properites' on some systems,
and on some other systems we see - "a is null" and the map is plotted
with all the points.
this is my code snippet-
if (GBrowserIsCompatible()) {
<% if(listAddress.size()>0){%>
var map = new GMap2(document.getElementById("map"));
var geocoder = new GClientGeocoder();
geocoder.getLatLng(<%=listAddress.get(0)+""%>, function(point) {
var marker = new GMarker(point);
map.setCenter(point, 6);
map.addOverlay(marker);
GEvent.addListener(marker,"click", function() {
marker.openInfoWindowHtml((<%=listAddress.get(0)%>));
});
} );
pausecomp(300);
<% for(int i=1;i<listAddress.size();i++){%>
geocoder.getLatLng(<%=listAddress.get(i)%>, function(point) {
var marker = new GMarker(point);
map.addOverlay(marker);
GEvent.addListener(marker,"click", function() {
marker.openInfoWindowHtml((<%=listAddress.get(i)%>));
});
} );
pausecomp(300);
<%}%>
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
<%}%>
This was working since 2-3 months, can anyone of you help me with
this? Thanks.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---