src/Leaflet.LayerGroup.Collision.js
function (el) {

		if (isMSIE8) {
			// Fallback for MSIE8, will most probably fail on edge cases
			return [ 0, 0, el.offsetWidth, el.offsetHeight];
		}

		var styles = window.getComputedStyle(el);

		// getComputedStyle() should return values already in pixels, so using parseInt()
		//   is not as much as a hack as it seems to be.

		return [
			parseInt(styles.marginLeft),
			parseInt(styles.marginTop),
			parseInt(styles.marginLeft) + parseInt(styles.width),
			parseInt(styles.marginTop)  + parseInt(styles.height)
		];
	}
function (el) {

		if (isMSIE8) {
			// Fallback for MSIE8, will most probably fail on edge cases
			return [ 0, 0, el.offsetWidth, el.offsetHeight];
		}

		var styles = window.getComputedStyle(el);

		// getComputedStyle() should return values already in pixels, so using parseInt()
		//   is not as much as a hack as it seems to be.

		return [
			parseInt(styles.marginLeft),
			parseInt(styles.marginTop),
			parseInt(styles.marginLeft) + parseInt(styles.width),
			parseInt(styles.marginTop)  + parseInt(styles.height)
		];
	}
function ( el ) { if ( isMSIE8 ) { // Fallback for MSIE8, will most probably fail on edge cases return [ 0 , 0 , el . offsetWidth , el . offsetHeight ] ; } var styles = window . getComputedStyle ( el ) ; // getComputedStyle() should return values already in pixels, so using parseInt() //   is not as much as a hack as it seems to be. return [ parseInt ( styles . marginLeft ) , parseInt ( styles . marginTop ) , parseInt ( styles . marginLeft ) + parseInt ( styles . width ) , parseInt ( styles . marginTop ) + parseInt ( styles . height ) ] ; }
Returns a plain array with the relative dimensions of a L.Icon, based on the computed values from iconSize and iconAnchor.
Returns a plain array with the relative dimensions of a L . Icon based on the computed values from iconSize and iconAnchor .