Commit 129fa22d authored by Michael Adair's avatar Michael Adair
Browse files

closes #46: add a separate message for source and dest

parent eb5c87a8
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -65,8 +65,12 @@ Proj4js = {
    *     projected Cartesian (x,y), but should always have x,y properties.
    */
    transform: function(source, dest, point) {
        if (!source.readyToUse || !dest.readyToUse) {
            this.reportError("Proj4js initialization for "+source.srsCode+" not yet complete");
        if (!source.readyToUse) {
            this.reportError("Proj4js initialization for:"+source.srsCode+" not yet complete");
            return point;
        }
        if (!dest.readyToUse) {
            this.reportError("Proj4js initialization for:"+dest.srsCode+" not yet complete");
            return point;
        }