Sha256: 1d460b5c10e6b522eced57d81ff94b9975584cac087d3b5ff9cf621212421fd8
Contents?: true
Size: 607 Bytes
Versions: 3
Compression:
Stored size: 607 Bytes
Contents
L.CRS = { latLngToPoint: function (/*LatLng*/ latlng, /*Number*/ scale)/*-> Point*/ { var projectedPoint = this.projection.project(latlng); return this.transformation._transform(projectedPoint, scale); }, pointToLatLng: function (/*Point*/ point, /*Number*/ scale, /*(optional) Boolean*/ unbounded)/*-> LatLng*/ { var untransformedPoint = this.transformation.untransform(point, scale); return this.projection.unproject(untransformedPoint, unbounded); //TODO get rid of 'unbounded' everywhere }, project: function (latlng) { return this.projection.project(latlng); } };
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
leaflet-ruby-0.3.beta4 | lib/leaflet/src/geo/crs/CRS.js |
leaflet-ruby-0.3.beta3 | lib/leaflet/src/geo/crs/CRS.js |
leaflet-ruby-0.3.beta1 | lib/leaflet/src/geo/crs/CRS.js |