Why do you need these methods, if not to overlay something on the map? We do not arbitrarily make things difficult for developers. This design allows us to delay-load the code for all projections, which speeds up every site that does not need these methods.
On 24 May 2010 02:24, "Pil" <[email protected]> wrote: 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]<google-maps-js-api-v3%[email protected]> . For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en. -- 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.
