Hi there,
I'm going to start working on a series of projects using Google Map
API v3 and I was wondering whether to wrap the current API or extend
the classes to add new functionality according to my necessities, for
example:
var MyWrapper = function () {
this._map = new google.maps.Map(...);
// ...
}
MyWrapper.prototype = {...}
or
var MyMap = function () {...}
goog.inherits(MyMap, google.maps.Map);
MyMap.prototype = {...}
Any suggestion ? I usually like wrapping rather than extending cause I
feel safer and with more control, I don't wanna override methods by
accident, also I can wrap the whole API in only one class, etc...
Thanks in advance.
--
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.