Sha256: 16c5ee982b58d52884cb53e4fb6761956e7309db48b9be729267c4f8577f1192
Contents?: true
Size: 684 Bytes
Versions: 3
Compression:
Stored size: 684 Bytes
Contents
/* * CRS.Cartesian is used for infinite coordinate systems that are not related to the Earth. Examples * include indoor maps, gaming maps, etc. We assume 0,0 is in the bottom right corner. */ L.CRS.Cartesian = L.Class.extend({ includes: L.CRS, initialize: function (bounds) { this._bounds = bounds; // TODO - add this to bounds class this._bounds.width = bounds.max.x - bounds.min.x this._bounds.height = bounds.max.y - bounds.min.y this.projection = L.Projection.Identity this.transformation = new L.Transformation(1.0/this._bounds.width, 0, -1.0/this._bounds.height, 1) } });
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
leaflet-ruby-0.3.beta4 | lib/zerista/CRS.Cartesian.js |
leaflet-ruby-0.3.beta3 | lib/zerista/CRS.Cartesian.js |
leaflet-ruby-0.3.beta1 | lib/zerista/CRS.Cartesian.js |