For more information,
This will work if I add constructor for google.maps.Map by myself.
Change the above code to:
goog.provide('MyMap');
MyMap = function(mapDiv, opts){
this.constructor.superClass_.constructor = google.maps.Map;
goog.base(this, mapDiv, opts);
}
goog.inherits(MyMap, google.maps.Map);
var myMap = new MyMap(div, opts);
This will working correct, but it doen't look like the right way to do
things.
Is there any reason we don't assign constructor for google.maps.Map at
first place ?
--
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.