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 Lon are numbers)
and I try to access the YGeoPoint it says it's not defined.
I even try this example I found in Internet:
var oDiv = document.createElement("div");
oDiv.style.width = "16px";
oDiv.style.height = "16px";
oDiv.style.backgroundColor = "blue";
oMap.addOverlay(new YCustomOverlay(oMap.getCenterLatLon(), oDiv));
but it won't show anything!! :(
How do I create a YCustomOverlay then? I'm stuck here I can't make them work.
Thanks again :)
Reine.
--- In yws-maps-ajax@yahoogroups.com, "notaplayer83" <notaplayer83@...> wrote:
>
> 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.
>