Commit 07824bcd authored by Michael Adair's avatar Michael Adair
Browse files

closes #53: add test in the case where coords are passed in as strings to Proj4js.Point constructor

parent b14bee0f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1536,7 +1536,7 @@ Proj4js.Point = Proj4js.Class({
        this.x = x[0];
        this.y = x[1];
        this.z = x[2] || 0.0;
      } else if (typeof x == 'string') {
      } else if (typeof x == 'string' && typeof y == 'undefined') {
        var coords = x.split(',');
        this.x = parseFloat(coords[0]);
        this.y = parseFloat(coords[1]);