On Jun 19, 8:48 am, Arvind Rangan <[email protected]> wrote:
>
> Do we have any control other than try .. catch which works good in IE to
> check if map object is not able to load or not.
I've used this in the past:
<script type="text/javascript">
var GMap2; // create object which maps script should overwrite
</script>
<script src="http://maps.google.com/maps?file=api&v=2&..."></script>
<script>
function isFunction(a) { return typeof a == 'function'; }
function isObject(a) { return (a && typeof a == 'object') ||
isFunction(a); }
if (isObject(GMap2))
{ //we've loaded the map scripts
...
}
--
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.