I encountered this just today. It happens in the latest V3 API when
you try to create a marker with a an undefined latitude or longitude.
On Firefox, it crashed my script altogether. My fix was:
function createMarker(m) {
if (m.LATDD != undefined && m.LONGDD != undefined) { // if stmnt
added to avoid odd IE bug
var marker = new google.maps.Marker({
position: new google.maps.LatLng(m.LATDD,m.LONGDD),
map: map,
title:m.MAP_LABEL
});
}
}
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.