Loading src/Point.js +56 −59 Original line number Diff line number Diff line Loading @@ -10,11 +10,11 @@ proj4.Point = proj4.Class({ * - z {float} the third component, optional. */ initialize : function(x,y,z) { if (typeof x == 'object') { if (typeof x === 'object') { this.x = x[0]; this.y = x[1]; this.z = x[2] || 0.0; } else if (typeof x == 'string' && typeof y == 'undefined') { } else if (typeof x === 'string' && typeof y === 'undefined') { var coords = x.split(','); this.x = parseFloat(coords[0]); this.y = parseFloat(coords[1]); Loading @@ -25,7 +25,6 @@ proj4.Point = proj4.Class({ this.z = z || 0.0; } }, /** * APIMethod: clone * Build a copy of a proj4.Point object. Loading @@ -36,7 +35,6 @@ proj4.Point = proj4.Class({ clone : function() { return new proj4.Point(this.x, this.y, this.z); }, /** * APIMethod: toString * Return a readable string version of the point Loading @@ -48,7 +46,6 @@ proj4.Point = proj4.Class({ toString : function() { return ("x=" + this.x + ",y=" + this.y); }, /** * APIMethod: toShortString * Return a short string version of the point. Loading Loading
src/Point.js +56 −59 Original line number Diff line number Diff line Loading @@ -10,11 +10,11 @@ proj4.Point = proj4.Class({ * - z {float} the third component, optional. */ initialize : function(x,y,z) { if (typeof x == 'object') { if (typeof x === 'object') { this.x = x[0]; this.y = x[1]; this.z = x[2] || 0.0; } else if (typeof x == 'string' && typeof y == 'undefined') { } else if (typeof x === 'string' && typeof y === 'undefined') { var coords = x.split(','); this.x = parseFloat(coords[0]); this.y = parseFloat(coords[1]); Loading @@ -25,7 +25,6 @@ proj4.Point = proj4.Class({ this.z = z || 0.0; } }, /** * APIMethod: clone * Build a copy of a proj4.Point object. Loading @@ -36,7 +35,6 @@ proj4.Point = proj4.Class({ clone : function() { return new proj4.Point(this.x, this.y, this.z); }, /** * APIMethod: toString * Return a readable string version of the point Loading @@ -48,7 +46,6 @@ proj4.Point = proj4.Class({ toString : function() { return ("x=" + this.x + ",y=" + this.y); }, /** * APIMethod: toShortString * Return a short string version of the point. Loading