Search the web
Sign In
New User? Sign Up
yws-maps-ajax · | Yahoo! Maps Ajax API
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
How to get the Lat and Long from a YCustomOverlay   Message List  
Reply | Forward Message #238 of 257 |
Hi :)

I'm working with YCustomOverlays but I'm not able to get the lat nd long from
the object once it's created :(. The weird part is that I can actually print
them with an alert() but can't use the value for anything else.

To get the value I'm using something like this:

var point = marker.YGeoPoint; // marker is the YCustomOverlay

Firebug says marker.YGeoPoint is undefined but if I do this:
alert(marker.YGeoPoint.Lat);

I get the right values.

What can I do to get the lat and long properly?

Thanks fr your help :)
Reine.




Mon Jul 20, 2009 9:16 pm

notaplayer83
Offline Offline
Send Email Send Email

Forward
Message #238 of 257 |
Expand Messages Author Sort by Date

Hi :) I'm working with YCustomOverlays but I'm not able to get the lat nd long from the object once it's created :(. The weird part is that I can actually...
notaplayer83
Offline Send Email
Jul 20, 2009
9:16 pm

I just wanted to add that I don't think I'm creating the object properly. When I do this: var marker = new YCustomOverlay(new YGeoPoint(Lat, Lon)); (Lat and...
notaplayer83
Offline Send Email
Jul 21, 2009
2:26 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help