Since 14 dec our Map API has caused a javascript error after an AJAX
request causes the map to reload. After some research we tracked the
error to the drawing of markers, more specific when using a custom
icon.

The marker is created by:

var marker = new google.maps.Marker({
                                position: latlng,
                                map: map,
                                icon: 'some_icon.png'
                            });

The markers shows as intended, but when an AJAX postback occures, we
get the dreaded 'null' is null or not an object error. After the
error, the markers are drawn to the map as intended.
By removing the custom icon the error disappears.

The custom icon has not caused us any problem earlier, and we have not
made any changes to the code.
The problem has been tested on IE7 and FF, and it only occurs in IE7.

--

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.


Reply via email to