[OpenLayers-Trac] [OpenLayers] #3369: deprecate bounds toGeometry
and use polygon fromBounds instead
OpenLayers
trac-20090302 at openlayers.org
Fri Jun 17 14:32:23 EDT 2011
#3369: deprecate bounds toGeometry and use polygon fromBounds instead
------------------------------+---------------------------------------------
Reporter: bartvde | Owner: tschaub
Type: task | Status: new
Priority: minor | Milestone: 3.0 Release
Component: BaseTypes.Bounds | Version: 2.10
Keywords: | State:
------------------------------+---------------------------------------------
As was discussed by tschaub in #3344
{{{
* why do we add fromBounds if we already have
OpenLayers.Bounds.toGeometry? I personally don't see a need for both.
Can you believe I forgot about Bounds.toGeometry (r5625 was a long time
ago)? Actually, I think toGeometry should be deprecated and fromBounds
should be added, but we don't need the bloat at this point. It makes more
sense that LonLat and Bounds (lower level) don't know about Geometry
(higher level). Whenever we get around to 3.0, this should be reworked.
For now, I'll rework the patch to use toGeometry.
}}}
--
Ticket URL: <http://trac.openlayers.org/ticket/3369>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list