On Mar 29, 9:47 pm, "[email protected]" <[email protected]> wrote: > On Mar 27, 4:29 pm, Dennis <[email protected]> wrote: > > > Hi xelawho, thank for your sugestion. > > > Yes I have tried playing around with the region ZoomLevel and in > > fact looked at every instance of "ZoomLevel" in the code. The > > regions are defined by polys and are set to ZoomLevel 7 and > > initilised in the populateRegions() > > method. The North and South Islands have no polys so not defined in > > the regions but in populateListToUpper() and populateListToLower() > > methods and set to ZoomLevel 6. The normalZoomLevel is 5. Both > > regions and island zoom levels seem to skip a level ( to 8, 7 in > > stead of 7, 6). > > > I thought some code is just adding "... +1" or something to the > > levels but the strange thing is when I set the region and island > > levels to 6, 5 the islands don't zoom in at all and the regions > > still skip a level. > > > It's very strange behaviour! I have tried to search through the > > code to find out where the zoom level is being changed but as I'm > > not a programmer, I just can't see through the code :(. The > > original programmer is not with the company anymore so I'm quite > > stuck. > > > Thanks for any help! > > The problem you are having is the code is poorly designed. It doesn't > check to see if it needs to zoom in or not when the zoomIn function is > called (of if it needs to zoom out when the zoomOut function is > called), and it is scheduling 2 zoomIn events when only one is > needed. If I hack in a check to see the target zoom and only > perform the zoom if it isn't already there, it works.
My hacked up version: http://geocodezip.com/leisuretours_co_nzD.html Doesn't seem to quite center right on the south island. -- Larry -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
