thanks for the head up, now i will refine the location if statement.
for the time being after test one by one element, finally it output
the city name.

thanks.

On Feb 3, 8:10 pm, Rossko <[email protected]> wrote:
> > ok updating the fakeLatitude to Johor Bahru, Malaysia latitude,
> > longitude.
>
> That works too, and plots a marker.
> Your code then fails because it tries to access an address element
> that doesn't exist.
> Look at the javascript error reported in your browser.
> Enhance your code with 'if' statements, to test for the existance of
> address elements before reading them.  Not all address results conatin
> all  possible elements.

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