I have a map object lile
var map = new google.maps.Map(document.getElementById("map_canvas"),myOptions);
and I want to get the the reference of overlayImage Pane.
How it is possible?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Currently, a handle to the map panes can only be obtained through the getPanes() method of the OverlayView class, and only after the draw() method has been called.
The code that returns the panes is contained in a separate module which the API loads asynchronously when needed, and for that reason it is not exposed directly as a method of the map object.
This is because the intention is to make the API as lightweight as possible for mobile devices.