This is a stumper!

I added a bunch of GLog.write()'s to catch values as they fly by.

I noticed something I don't understand when the script uses
GScreenPoint() to get the new points for the overlay:

      promptScreenXY = new GScreenPoint(((mapwidth- 65 - 110)/2) + 65,
mapheight-34);
      promptOverlayXY = new GScreenPoint(81, 26);

Right after those assignments,  I GLog()ed properties of
promptScreenXY and promptOverlayXY.

promptScreenXY.xunits yields 'pixels' as expected.

But promptScreenXY.x yields 'undefined'.

Same is true for promptOverlayXY, and for both objects' y and yunits
properties.

Those screenpoint objects are arguments in the GScreenOverlay() method
employed in the script's addOverlay() function.

Shouldn't those x and y properties have values in them?

??????





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to