Hello:
I am trying to use closure-library inherits google.maps.Map class to
make my own subclass. But seems google.maps.Map doesn't have a
constructor.
Here is what I do:
goog.provide('MyMap');
MyMap = function(mapDiv, opts){
goog.base(this, mapDiv, opts);
}
goog.inherits(MyMap, google.maps.Map);
var myMap = new MyMap(div, opts);
But this doesn't give me right result, myMap have the right inherits
prototype but doesn't have any field and constructor.
I try to step into goog.base and goog.inherits to see what it does,
it seems google.maps.Map doesn't have a constructor, so when goog.base
try to call superClass_.constructor, it got noting.
So is there any way I can inherits from google.maps.Map ? or this is
not the right way to use google map api ? Or I should post this
question to closure library ?
Thanks for read my question
xzhang
--
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.