javascript - Reverse geocoding on marker click -


I have Google Map embedded with my web application in ASP.NET 3.5.

I have applied the reverse geocoding on map click (getting address from latitude and longitude).

Now, I need it but on the marker click

How do I click the marker?

For each of your markers, add the following event handlers for the click event. It assumes that you are using version 2 API

, // In the context of your marker object and click // function, click the event GEvent.addListener (marker, "click", function () {// show your geocoding here} );

You can get the marker's coordinates with your getLatLng () method, which returns returns.

More information can be found.


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -