Code coverage report for src/geo/crs/CRS.Simple.js

Statements: 50% (1 / 2)      Branches: 100% (0 / 0)      Functions: 0% (0 / 1)      Lines: 50% (1 / 2)     

All files » src/geo/crs/ » CRS.Simple.js
1 2 3 4 5 6 7 8 9 10 11 12 13        1                
/*
 * A simple CRS that can be used for flat non-Earth maps like panoramas or game maps.
 */
 
L.CRS.Simple = L.extend({}, L.CRS, {
	projection: L.Projection.LonLat,
	transformation: new L.Transformation(1, 0, -1, 0),
 
	scale: function (zoom) {
		return Math.pow(2, zoom);
	}
});