Martin wrote:
> Try this:
>
> function GCircle(){
> // this is the constructor
> }
>
> GCircle.prototype=new GPolyline();
>
> GCircle.prototype.newMethod=function(){
> // define a new method here
> };
>
Obviously that's one of the first methods that I tried. Doesn't work.
The errors are completely unreadable and impossible to deal with. It
happens in some fh(...) function within some eval(...), basically you
get the idea: the error is in the middle of nowhere. In other cases it
complains that initialize is undefined or something else. At the end I
actually solved my problem in way that nobody proposes to extend objects
like that. But I'd like to see if any google developers can say about
extending their objects and how it should be done in their framework
properly.
(Actually I didn't try GPolyline, I tried GPolygon since I'm talking
about Circles/Polygons here)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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-api?hl=en
-~----------~----~----~----~------~----~------~--~---