INNER CODE UNIT · JavaScript

scaleDiff

business-science/free_r_tips · 030_slide_decks_xaringan/libs/Proj4Leaflet/proj4leaflet.js:129

				scaleDiff = nextScale - baseScale;
				zDiff = (zoom - iZoom);
				return baseScale + scaleDiff * zDiff;
			}
		},

		zoom: function(scale) {
			// Find closest number in this._scales, down
			var downScale = this._closestElement(this._scales, scale),
				downZoom = this._scales.indexOf(downScale),
				nextScale,
				nextZoom,
				scaleDiff;
			// Check if scale is downScale => return array index
			if (scale === downScale) {
				return downZoom;
			}
			if (downScale === undefined) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…