Ahh now I see so major mistake I done was this
document.getElementById("lat").innerHTML =
marker.getPosition().lat();
document.getElementById("lon").innerHTML =
marker.getPosition().lng();
Thank you very much geocodezip.
On Dec 10, 3:24 pm, "[email protected]" <[email protected]>
wrote:
> On Dec 9, 10:35 pm, Eric <[email protected]> wrote:
>
> > As request here is the link :
>
> >http://tayhaithian.byethost2.com/asd.html
>
> the dragend event listener works fine for
> me.http://www.geocodezip.com/tayhaithian_byethost2_com_asdB.html
> (your problem was how to read the position of the marker when it
> fired)
>
> -- Larry
>
>
>
>
>
>
>
>
>
> > On Dec 10, 1:55 pm, "[email protected]" <[email protected]>
> > wrote:
>
> > > On Dec 9, 7:26 pm, Eric <[email protected]> wrote:
>
> > > > I try to trigger the listener to "Dragend" so I could actually locate
> > > > the lat,lng coordinate. But it seems don't work with my code.
>
> > > You should be getting obvious javascript errors.
>
> > > Please post a link to your map.
>
> > > > Below is
> > > > the code I'm working with.
>
> > > No thanks.
>
> > > > document.getElementById("lat").innerHTML = latlng.lat();
> > > > document.getElementById("lon").innerHTML = latlng.lng();
>
> > > I would expect you get a latlng is undefined error...
>
> > > -- Larry- Hide quoted text -
>
> > - Show quoted text -
--
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.