I'm writing code to allow using the Google Maps UI to pan/zoom your
own panoramic photographs. I believe this is mostly done but with a
few small remaining issues. The one that is highest priority though
and impedes my productivity because of its nature is one where the
browser spins one of my CPU cores at 100% for about 30 seconds or so
before calming down. Using Firebug in Firefox, I can see messages
about a stack overflow due to recursion but they're very hard to
decipher given the obfuscated GMaps code. Any help someone can provide
is greatly appreciated.

Background on my app:
- I define my own tile layer and create my own map type with it.
- I define my own projection derived from GProjection.
- I constrain panning to the extent of the image (unless you zoom out)

Steps to reproduce:
- I'm using Firefox 3.0.3 on WinXP w/ SP3. I so far haven't reproduced
this on IE7.
- here's the link: 
http://www.burnsorama.com/panoviewer/GoogleMapsPanoramaViewer.html
- Zoom in two levels (depends on the size of your screen. Zoom in
enough levels so that the image extends beyond the vertical limits of
the browser window).
- grab the image and pan downward quickly so that the top of the image
is at the top of the browser window.
- Firefox freezes on me for 20-30 seconds. With Firebug, I get a long
list of errors in GMaps code about too much recursion. The one line of
mine in there is line 45: return new GLatLng(lat, lng, unbounded);
(this is in my projection class)

Given that it takes trying to pan the image past its edges to trigger
it, I believe it's some interaction with my function checkBounds() and
my projection class but I don't see what.

(As a debugging aid, you can click anywhere on the image to show the
coordinates you clicked on plus the zoom level.)

Thanks in advance for any pointers.

Dave

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to