Since this discussion is maps related, I'm moving it to the Maps API V3 
group.

You should never depend upon undocumented properties - they can and do 
change without notice. They are also not included in the official 
Closure-Compiler externs.

For your specific case, the way to get the information you are after is to 
use a dummy OverlayView. In the draw method of the OverlayView, you can get 
a projection which allows you to call fromLatLngToConainerPixel. You can use 
the latLng property of the mouse event to get the Container Pixel.

Here's a thread with more info: 
https://groups.google.com/d/topic/google-maps-js-api-v3/8w6N-tnLLJs/discussion

Chad Killingsworth

On Tuesday, February 8, 2011 11:13:46 AM UTC-6, sgiddings wrote:
>
> **** UPDATE ***** 
>
> Yes, I got it wrong again. 
> This is a callback for a mouse event within Google Map API v3. 
> Undocumented properties for the passed in MouseEvent object. 
>
> Sorry for the confusion here. 
> Simon 
>
> On Feb 8, 6:02 pm, sgiddings <[email protected]> wrote: 
> > Hi Chad, 
> > 
> > Yep, you are right. 
> > These are properties that I saw in when inspecting code through 
> > firebug in Firefox. 
> > As Firefox is supposed to be standards compliant, I took it for 
> > granted that these were official properties. 
> > It turns out that they are, in reality, undocumented ... to be 
> > removed / replaced with correct values. 
> > 
> > Thanks for your help here. 
> > Simon 
> > 
> > On Feb 8, 3:05 pm, Chad Killingsworth 
> > 
> > <[email protected]> wrote: 
> > > Since you also post in the maps v3 forum, I'm guessing this has to do 
> with a 
> > > Google Maps v3 implementation. We'll still need more context because I 
> don't 
> > > know of a "pixel" property on an event object in either the DOM event 
> > > objects or in any of the Map event objects. Since the pixel property is 
>
> > > unknown, the compiler renames it. 
> > 
> > > As in the maps forum, giving more detail or a link to a demo will help. 
>
> > 
> > > Chad Killingsworth

-- 
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.

Reply via email to