On May 20, 11:59 am, Simon Clark <[email protected]> wrote:
> 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
I wouldn't call that an IE bug, it is an error in your code or your
input date. All browsers will give unexpected results in that case,
just because IE is different from the others (surprise, surprise)
doesn't mean it is a bug (and not that IE doesn't have any).
-- Larry
> 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.