[OpenLayers-Dev] question about upcoming projection support

Christopher Schmidt crschmidt at metacarta.com
Tue Jan 15 07:05:06 EST 2008


On Tue, Jan 15, 2008 at 12:44:26PM +0100, Bart van den Eijnden (OSGIS) wrote:
> Hi list,
> 
> currently an OpenLayers.Bounds does not have a property to say to which
> coordinate reference system it applies. Is this forthcoming with the
> upcoming projection support? Or will it be solved in a different way? TIA.

I had no plans to change that -- the creator of a bounds should know
what projection it's in? If it's coming from the map, there is
map.getProjectionObject to tell you? 

It's easy enough to store it at creation time, but manually created
bounds obviously couldn't have it -- we could store it as a property on
reprojection, I suppose, though I worry about cleaning up those
references... I doubt bounds has a proper destroy() or that we're using
it diligently, since it doesn't interact with the DOM.

Can you explain what you'd need it for?

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Dev mailing list