Merge pull request #23 from tmcw/max-extent-doc

Improve maxExtent documentation.  Thanks @tmcw.
This commit is contained in:
Tim Schaub
2011-10-25 16:17:28 -07:00
+8 -5
View File
@@ -299,11 +299,14 @@ OpenLayers.Map = OpenLayers.Class({
/** /**
* APIProperty: maxExtent * APIProperty: maxExtent
* {<OpenLayers.Bounds>} The maximum extent for the map. Defaults to the * {<OpenLayers.Bounds>} The maximum extent for the map. Defaults to the
* whole world in decimal degrees * whole world in decimal degrees
* (-180, -90, 180, 90). Specify a different * (-180, -90, 180, 90). Specify a different
* extent in the map options if you are not using a * extent in the map options if you are not using a
* geographic projection and displaying the whole * geographic projection and displaying the whole
* world. * world. To restrict user panning and
* zooming of the map, use restrictedExtent instead.
* The value for maxExtent will change calculations for
* tile URLs.
*/ */
maxExtent: null, maxExtent: null,