Script and makefile adjustments for updating extlib
[larjonas-mediagoblin.git] / extlib / leaflet / src / geo / crs / CRS.js
blob2dc2aa8d910339d6b3c00927e003f995d33f9074
2 L.CRS = {
3 latLngToPoint: function(/*LatLng*/ latlng, /*Number*/ scale)/*-> Point*/ {
4 var projectedPoint = this.projection.project(latlng);
5 return this.transformation._transform(projectedPoint, scale);
6 },
8 pointToLatLng: function(/*Point*/ point, /*Number*/ scale, /*(optional) Boolean*/ unbounded)/*-> LatLng*/ {
9 var untransformedPoint = this.transformation.untransform(point, scale);
10 return this.projection.unproject(untransformedPoint, unbounded);
11 //TODO get rid of 'unbounded' everywhere
14 project: function(latlng) {
15 return this.projection.project(latlng);