fromContainerPixelToLatLng()
fromDivPixelToLatLng()
fromLatLngToContainerPixel()
fromLatLngToDivPixel()
All these four methods are only accessible through
MapCanvasProjection. MapCanvasProjection is only accessible when an
overlay is used. So a redundant dummy overlay must be used to keep the
v3 API happy. At least these three things must be done to access one
of these methods finally:
1. Set a constructor function for a dummy object as followed
function Dummy(map) {
this.setMap(map);
}
2. Extend the dummy object by using OverlayView()
Dummy.prototype = new google.maps.OverlayView();
To avoid a script error an empty draw method should be added
Dummy.prototype.draw = function() {};
3, Initialize the dummy object early and in global scope so that it's
ready when needed.
In v2 there was (and still is) only one line necessary for this
procedure.
--
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.