Changeset 4787
- Timestamp:
- 10/03/07 12:44:15 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/euzuro/zoomToResolution/lib/OpenLayers/Map.js
r4768 r4787 1386 1386 * Parameter: 1387 1387 * resolution - {Float} 1388 * closest - {Boolean} Find the zoom level that corresponds to the absolute 1389 * closest resolution, which may result in a zoom whose corresponding 1390 * resolution is actually smaller than we would have desired (if this 1391 * is being called from a getZoomForExtent() call, then this means that 1392 * the returned zoom index might not actually contain the entire 1393 * extent specified... but it'll be close). 1394 * Default is false. 1388 1395 * 1389 1396 * Returns: … … 1391 1398 * If no baselayer is set, returns null. 1392 1399 */ 1393 getZoomForResolution: function(resolution ) {1400 getZoomForResolution: function(resolution, closest) { 1394 1401 var zoom = null; 1395 1402 if (this.baseLayer != null) { 1396 zoom = this.baseLayer.getZoomForResolution(resolution );1403 zoom = this.baseLayer.getZoomForResolution(resolution, closest); 1397 1404 } 1398 1405 return zoom;
