> In the javascript I put the original code to show the tooltip of the > markers.
Geocoding (and reverse geocoding) is asynchronous. Something like geocoder.geocode() only fires off a request to Google's servers, no response will come back for some time. Meantime your code carries on and uses 'indirizzo' which is still undefined so far. If you want to use the results, you must use them in the callback, perhaps by setting some property of your marker that you could use later in the mouseover routine. Note that there are limits to how many requests you can fire off, and you also need to take care when firing off multiple requests not to muddle the responses up. They might not even come back in the same order you requested them. On the whole, its a bad idea to make multiple geocodes every time someone looks at your webpage. It's slow, unreliable, and hogs resources other people share with you. If your "P" markers aren't going to move round the countryside very often, geocode once beforehand and store the address along with your other data. That also allows you to correct any errors or inaccuracies. -- 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.
