[OpenLayers-Dev] inheritance with Geometry
Christopher Schmidt
crschmidt at metacarta.com
Tue May 8 09:23:42 EDT 2007
On Tue, May 08, 2007 at 05:11:16PM +1000, Cameron Shorter wrote:
> I'm digging around some of the Geometry code and have discovered that
> OpenLayers.Geometry.Polygon inherits from OpenLayers.Handler.Polygon
> instead of OpenLayers.Geometry (as I'd expect).
Er... huh?
OpenLayers.Geometry.Polygon = OpenLayers.Class.create();
OpenLayers.Geometry.Polygon.prototype =
OpenLayers.Class.inherit(OpenLayers.Geometry.Collection, {
OpenLayers.Geometry.Collection = OpenLayers.Class.create();
OpenLayers.Geometry.Collection.prototype =
OpenLayers.Class.inherit( OpenLayers.Geometry, {
Those are from my checkout of trunk, updated a couple minutes ago... are
you sure you're looking at the right code?
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Dev
mailing list