Loading lib/proj4js.js +0 −29 Original line number Diff line number Diff line Loading @@ -107,17 +107,11 @@ Proj4js = { return point; } if (point.transformed) { this.log("point already transformed"); return point; } // Workaround for Spherical Mercator if ((source.srsProjNumber =="900913" && dest.datumCode != "WGS84") || (dest.srsProjNumber == "900913" && source.datumCode != "WGS84")) { var wgs84 = Proj4js.WGS84; this.transform(source, wgs84, point); point.transformed= false; source = wgs84; } Loading Loading @@ -157,7 +151,6 @@ Proj4js = { point.y /= dest.to_meter; } } point.transformed= true; return point; }, // transform() Loading Loading @@ -1182,28 +1175,6 @@ Proj4js.Point = OpenLayers.Class({ */ toShortString : function() { return (this.x + ", " + this.y); }, /** * APIMethod: isTransformed * Indicates whether the point has been successfully transformed. */ isTransformed : function() { return this.transformed; }, /** * APIMethod: setTransformed * Set the flag indicating that the point has been or not successfully * transformed. Usefull when the same point instance is used for * multiple transformations without having to construct/delete a * instance. * * Parameters: * - state {Boolean} true if success transformation, false otherwise. */ setTransformed : function(state) { this.transformed = state ; } }); Loading Loading
lib/proj4js.js +0 −29 Original line number Diff line number Diff line Loading @@ -107,17 +107,11 @@ Proj4js = { return point; } if (point.transformed) { this.log("point already transformed"); return point; } // Workaround for Spherical Mercator if ((source.srsProjNumber =="900913" && dest.datumCode != "WGS84") || (dest.srsProjNumber == "900913" && source.datumCode != "WGS84")) { var wgs84 = Proj4js.WGS84; this.transform(source, wgs84, point); point.transformed= false; source = wgs84; } Loading Loading @@ -157,7 +151,6 @@ Proj4js = { point.y /= dest.to_meter; } } point.transformed= true; return point; }, // transform() Loading Loading @@ -1182,28 +1175,6 @@ Proj4js.Point = OpenLayers.Class({ */ toShortString : function() { return (this.x + ", " + this.y); }, /** * APIMethod: isTransformed * Indicates whether the point has been successfully transformed. */ isTransformed : function() { return this.transformed; }, /** * APIMethod: setTransformed * Set the flag indicating that the point has been or not successfully * transformed. Usefull when the same point instance is used for * multiple transformations without having to construct/delete a * instance. * * Parameters: * - state {Boolean} true if success transformation, false otherwise. */ setTransformed : function(state) { this.transformed = state ; } }); Loading