[OpenLayers-Trac] [OpenLayers] #1121: implement calculateBounds for Polygon.js

OpenLayers trac at openlayers.org
Thu Nov 1 11:01:54 EDT 2007


#1121: implement calculateBounds for Polygon.js
-------------------------------+--------------------------------------------
  Reporter:  bartvde           |       Owner:  tschaub
      Type:  task              |      Status:  closed 
  Priority:  minor             |   Milestone:         
 Component:  Geometry.Polygon  |     Version:  2.5    
Resolution:  invalid           |    Keywords:         
-------------------------------+--------------------------------------------
Changes (by crschmidt):

  * status:  new => closed
  * resolution:  => invalid

Comment:

 calculateBounds is already implemented for Polygons (by its parent class,
 Geometry.Component). calculateBounds does not return anything -- instead,
 you should just call getBounds, which calls calculateBounds (if neccesary)
 and returns the bounds of the geometry.

 So, I think the answer is "you should be using getBounds()."

-- 
Ticket URL: <http://trac.openlayers.org/ticket/1121#comment:1>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list