I've absolutely no idea how that could have centred the map correctly the first time.
The first time, the zoom works because parseFloat(this.rel) is null, and map.setCenter(null,17) performs the zoom, but the map centre shouldn't be affected. The second time parseFloat(this.rel) is some number. map.setCenter(number,17) crashes when it tries to call number.lat(), because numbers don't have latitudes and longitudes. Also, be careful about using "this" in global context. The "this" might well not be what you expect. -- http://econym.org.uk/gmap The Blackpool Community Church Javascript Team --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
