And why is the second marker displayed with the correct information then? Why does the correct information appear when I use alert with the result-object? Why does this only happen when I use alert in the if (geocoder) function and nowhere else? Why doesn't it work with something random, like creating a new variable?
Even if you are correct and this has something to do with geocoding being asynchronous I still don't know how to solve this problem without using alert. I already said that im pretty inexperienced... I'll take the part out where the document asks for your position ... as I'm not really using it anyways. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
