#794 - adding resolutions as a property of OpenLayers.Map - adding additional comments for ND as well - we need to revisit APIProperties on Layer and Map

git-svn-id: http://svn.openlayers.org/trunk/openlayers@3568 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2007-07-03 17:15:37 +00:00
parent 50632ab8c9
commit 59c038f6b0
2 changed files with 40 additions and 26 deletions
+19 -10
View File
@@ -136,7 +136,7 @@ OpenLayers.Map.prototype = {
*/
viewRequestID: 0,
// Options
// Options
/**
* APIProperty: tileSize
@@ -146,7 +146,7 @@ OpenLayers.Map.prototype = {
tileSize: null,
/**
* Property: projection
* APIProperty: projection
* {String} Set in the map options to override the default projection
* string this map - also set maxExtent, maxResolution, and
* units if appropriate.
@@ -154,14 +154,23 @@ OpenLayers.Map.prototype = {
projection: "EPSG:4326",
/**
* Property: units
* APIProperty: units
* {String} The map units. Defaults to 'degrees'. Possible values are
* 'degrees' (or 'dd'), 'm', 'ft', 'km', 'mi', 'inches'.
*/
units: 'degrees',
/**
* Property: maxResolution
* APIProperty: resolutions
* {Array} A list of map resolutions (map units per pixel) in descending
* order. If this is not set in the layer constructor, it will be set
* based on other resolution related properties (maxExtent, maxResolution,
* maxScale, etc.).
*/
resolutions: null,
/**
* APIProperty: maxResolution
* {Float} Default max is 360 deg / 256 px, which corresponds to
* zoom level 0 on gmaps. Specify a different value in the map
* options if you are not using a geographic projection and
@@ -170,25 +179,25 @@ OpenLayers.Map.prototype = {
maxResolution: 1.40625,
/**
* Property: minResolution
* APIProperty: minResolution
* {Float}
*/
minResolution: null,
/**
* Property: maxScale
* APIProperty: maxScale
* {Float}
*/
maxScale: null,
/**
* Property: minScale
* APIProperty: minScale
* {Float}
*/
minScale: null,
/**
* Property: maxExtent
* APIProperty: maxExtent
* {<OpenLayers.Bounds>} The maximum extent for the map. Defaults to the
* whole world in decimal degrees
* (-180, -90, 180, 90). Specify a different
@@ -199,13 +208,13 @@ OpenLayers.Map.prototype = {
maxExtent: null,
/**
* Property: minExtent
* APIProperty: minExtent
* {<OpenLayers.Bounds>}
*/
minExtent: null,
/**
* Property: numZoomLevels
* APIProperty: numZoomLevels
* {Integer} Number of zoom levels for the map. Defaults to 16. Set a
* different value in the map options if needed.
*/