The Google Maptypes use "new GMercatorProjection(31)" [1] so they'll crash when the zoom level exceeds 31.
[1] Actually it's a bit more complex than that. The MOON, MARS and SKY maptypes use "new GMercatorProjection(30)", and normal Google maptypes calculate the "31" by performing "Math.max(30,30)+1". Presumably one of those "30"s is some sort of parameter that's already been substituted by "30" and the other one is a real hard-coded "30". The expression "Math.max(30,30)" occurs in 5 other places in main.js. I can see that one of them limits doubleClickZoom. I guess the other occurrences apply the zoom limit to other zoom-related features. Some of that code is hard to read. A quick experiment shows that if you try to create a custom map type with more zoom levels, then it gets limited to zoom level 30. -- Mike Williams http://econym.org.uk/gmap --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
