> My map implementation is
> athttp://foothill-web-gis.googlecode.com/svn/trunk/webgis/fhwebmapdemo....
There's no doctype.
map = new fhWebMap('fh...
Your 'map' object is undeclared, this can cause different behaviour in
different browsers
I get your error in FF2/win too
I'd guess your actual error is due to complexity. Clicking
'buildings' also triggers showLayer foreach of rooms1, rooms2 etc. for
your bring-to-front layering. Each call of rooms1 etc. also calls
setMap for elevators, restrooms. Each setMap is asynchronous, and as
the API/browser is already busy carrying out setMap on other layers I
doubt it will have finished setMap for every one of the three or four
requests to elevators before the next demand arrives.
If I step through the code it works, strongly suggesting it is a
timing issue.
I think you need some task management ; maybe build a work-queue for
the ordering job and have it so that each layer is only setMap once.
--
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.