[OpenLayers-Dev] question about upcoming projection support

Christopher Schmidt crschmidt at metacarta.com
Tue Jan 15 12:43:14 EST 2008


On Tue, Jan 15, 2008 at 11:31:51AM -0600, Erik Uzureau wrote:
> hi bart, the toString() function I think was mostly just designed for
> debugging... not so much as a way to translate the bounds into a storable
> string format.
> 
> I think your point is a good one... unfortunately, it wouldn't be proper of
> us to change a thing like this now because it would be a breach of API.
> 
> for the OpenLayers 3.0 release, however, I think this would be a great thing
> to change.
> 
> erik
> 
> ps. if you really need this functionality, we could put in a patch for a
> function with a different name (saveToString() or something like that) for
> the time being and mark the current toString() as deprecated...

No need for this: just use bounds.toBBOX() to serialize, and
bounds.fromString to deserialize.

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Dev mailing list