Hi!

 I'm trying to use function fromDivPixelToLatLng(), but my code
breaks, I cant understand why? Please help with this code sample,
whats wrong?:

                 //map canvas width = 800; height=600
                 var SWpoint = new google.maps.Point(100, 600);
                 var NEpoint = new google.maps.Point(500, 100);

                 var proj = mP.getProjection();
                 var latlngSW = proj.fromDivPixelToLatLng(SWpoint);
                 //Javascript Breakes here, not continue.... cant find reason :(
                 var latlngNE = proj.fromDivPixelToLatLng(NEpoint);

Best regards,

Jurgis

-- 
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 google-maps-js-api...@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to