Ticket #1275 (closed bug: fixed)
align toString and fromString for OpenLayers.Bounds
|Reported by:||bartvde||Owned by:||euzuro|
Erik's reply: 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...
Original email: Hmm, one more thing, isn't it strange that toString and fromString use different string formats?
I was hoping to use toString and create a bounds again from the same string using fromString.
But toString uses: left-bottom=(23560.672130601146,384199.8282873455) right-top=(50198.73747014423,401559.87359025853 )
and fromString interprets only something like: 23560.672130601146,384199.8282873455,50198.73747014423,401559.87359025853