Map: correct docs for maxExtent

This commit is contained in:
Peter Robins
2013-01-05 16:23:31 +00:00
parent fa14b94570
commit dcaefea3cc

View File

@@ -315,12 +315,12 @@ OpenLayers.Map = OpenLayers.Class({
* APIProperty: maxExtent * APIProperty: maxExtent
* {<OpenLayers.Bounds>|Array} If provided as an array, the array * {<OpenLayers.Bounds>|Array} If provided as an array, the array
* should consist of four values (left, bottom, right, top). * should consist of four values (left, bottom, right, top).
* The maximum extent for the map. Defaults to the * The maximum extent for the map.
* whole world in decimal degrees (-180, -90, 180, 90). Specify a * Default depends on projection; if this is one of those defined in OpenLayers.Projection.defaults
* different extent in the map options if you are not using a geographic * (EPSG:4326 or web mercator), maxExtent will be set to the value defined there;
* projection and displaying the whole world. To restrict user panning * else, defaults to null.
* and zooming of the map, use <restrictedExtent> instead. The value * To restrict user panning and zooming of the map, use <restrictedExtent> instead.
* for <maxExtent> will change calculations for tile URLs. * The value for <maxExtent> will change calculations for tile URLs.
*/ */
maxExtent: null, maxExtent: null,