getLatLng doesn't *return* the lat long, it passes it to a callback. http://code.google.com/apis/maps/documentation/services.html#Geocoding_Object
http://econym.org.uk/gmap/async.htm But, have to ask if you know its a fixed address, why bother geocoding (each and every time the page loads) - surely the address isnt going to move position... On 01/10/2009, Rossko <[email protected]> wrote: > > > map.setCenter(new GClientGeocoder.getLatLng("76 9th ave new > york"), > > 17); > > > I'm not very OOP clued, but I don't think you can do that. Try > something more like what you commented out - > geocoder = new GClientGeocoder(); > map.setCenter(geocoder.getLatLng("76 9th ave new york"), 17); > > > > > -- Barry - www.nearby.org.uk - www.geograph.org.uk - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
