[OpenLayers-Trac] [OpenLayers] #1134: zoomWorldIcon in PanZoom should zoom to map.restrictedExtent, if defined
OpenLayers
trac at openlayers.org
Fri Nov 9 17:44:14 EST 2007
#1134: zoomWorldIcon in PanZoom should zoom to map.restrictedExtent, if defined
---------------------+------------------------------------------------------
Reporter: jachym | Owner:
Type: bug | Status: new
Priority: minor | Milestone: 2.6 Release
Component: general | Version: 2.5
Keywords: review |
---------------------+------------------------------------------------------
Currently, when user click on zoomWorld icon in PanZoom panel, it will
zoom to maxExtent, without no matter if map.restrectedExtent is defined or
not.
This behaviour is IMHO bug - restricted extent is here, for define region
of interest. zoomWorld icon should zoom to the region of interest, not to
whole area.
This patch makes PanZoom to look first, if this.map.restrictedExtent is
defined and zooms to it. If not, than it zooms to maxExtent.
--
Ticket URL: <http://trac.openlayers.org/ticket/1134>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list