> If you read that docs yourself, then you know that to have a GCircle I'd > need to implement redraw, instantiate, remove etc etc...
Yes, that's exactly right. > The questions > is: why the hell would I need to do it if it's all implemented in > generic polygon and all I need is to refine its constructor. That's the > point of my question. You could make your own .redraw() functionality as a copy of say GPolygon's. It won't work of course because GPolygon's .redraw() has no idea how to draw a circle. Were you expecting it to guess somehow? What you need, to redraw a circle on say map zooming, doesn't exist in GPolygon. > I don't need to learn js, I just wanted a quick way to > inherit from another class. And there's the problem. See Crockford again - "JavaScript does not have classes" You can either actually learn, or you can do what people tell you for the quick fix and stop worrying about the whyfore - in this case just create the extra methods. Try this one - http://javascript.crockford.com/prototypal.html Or you can give up this approach and try the Flash based API, if you don't like the way javascript works. There are options. cheers, Ross K --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
