[Trac] [OpenLayers] #228: limit panning to maxExtent

OpenLayers trac at openlayers.org
Mon Oct 16 16:49:07 EDT 2006


#228: limit panning to maxExtent
----------------------+-----------------------------------------------------
  Reporter:  tschaub  |       Owner:  euzuro     
      Type:  feature  |      Status:  assigned   
  Priority:  major    |   Milestone:  2.2 Release
 Component:  general  |     Version:             
Resolution:           |    Keywords:             
----------------------+-----------------------------------------------------
Comment (by openlayers):

 One feature I think is worth adding:

  * calculateBounds from center, resolution: Provide a method that allows a
 user to calculate an extent based on a center point and a resolution. This
 has nothing to do with layer, so I have moved it out of the getExtent()
 function in Layer.js and into Map.js as a function called
 'calculateBounds()' as the only variable it ultimately depends on is the
 map size. Conveniently, we can now simplify OpenLayer.Layer.getExtent() to
 simply call calculateBounds() with no arguments (defaults are map's center
 & resolution)

 patch forthcoming

-- 
Ticket URL: <http://trac.openlayers.org/ticket/228>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list