Sha256: 5da85969dbc1639fa0ac51813fcb1500b4bf34d4986166a4ca061bd39b579050

Contents?: true

Size: 279 Bytes

Versions: 9

Compression:

Stored size: 279 Bytes

Contents

/*
 * 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);
	}
});

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
leaflet-js-0.7.9 vendor/assets/Leaflet/src/geo/crs/CRS.Simple.js
leaflet-js-0.7.8 vendor/assets/Leaflet/src/geo/crs/CRS.Simple.js
leaflet-js-0.7.7 vendor/assets/Leaflet/src/geo/crs/CRS.Simple.js
leaflet-js-0.7.0.4 lib/leaflet/src/geo/crs/CRS.Simple.js
leaflet-js-0.7.0.3 lib/leaflet/src/geo/crs/CRS.Simple.js
leaflet-js-0.7.0.2 lib/leaflet/src/geo/crs/CRS.Simple.js
leaflet-js-0.7.0.1 lib/leaflet/src/geo/crs/CRS.Simple.js
leaflet-js-0.7.0 lib/leaflet/src/geo/crs/CRS.Simple.js
leaflet-js-0.6.beta4 lib/leaflet/src/geo/crs/CRS.Simple.js