Changeset 1227
- Timestamp:
- 08/15/06 21:09:42 (2 years ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Map.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Map.js
r1219 r1227 811 811 }, 812 812 813 /** 814 * @returns The current scale denominator of the map. 815 * If no baselayer is set, returns null. 816 * @type float 817 */ 818 getScale: function () { 819 var scale = null; 820 821 if (this.baseLayer != null) { 822 var res = this.baseLayer.getResolution(); 823 var units = this.baseLayer.units; 824 scale = res * OpenLayers.INCHES_PER_UNIT[units] * 825 OpenLayers.DOTS_PER_INCH; 826 } 827 return scale; 828 }, 829 830 813 831 /** 814 832 * @param {OpenLayers.Bounds} bounds
