Loading lib/proj4js.js +14 −5 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ $Id: Proj.js 2956 2007-07-09 12:17:52Z steven $ */ /** * Proj4js * Namespace: Proj4js * * Proj4js is a JavaScript library to transform point coordinates from one * coordinate system to another, including datum transformations. Loading Loading @@ -126,7 +126,7 @@ Proj4js = { // Short cut if the datums are identical. if( source.compare_datums( dest ) ) { return point; // in this case, zero is sucess, //return point; // in this case, zero is sucess, // whereas cs_compare_datums returns 1 to indicate TRUE // confusing, should fix this } Loading Loading @@ -204,14 +204,20 @@ Proj4js = { * Override this in applications to report error messages or throw exceptions. */ reportError: function(msg) { //console.log(msg); console.log(msg); }, /** * * Title: Private Methods * The following properties and methods are intended for internal use only. * * This is a minimal implementation of JavaScript inheritance methods so that * Proj4js can be used as a stand-alone library. * These are copies of the equivalent OpenLayers methods at v2.7 * */ /** * Function: extend * Copy all properties of a source object to a destination object. Modifies * the passed in destination object. Any properties on the source object Loading Loading @@ -290,6 +296,9 @@ Proj4js = { }; }, /** * The following properties and methods handle dynamic loading of JSON objects. * /** * Property: scriptName * {String} The filename of this script without any path. Loading Loading @@ -381,7 +390,7 @@ Proj4js = { /** * Class: Proj4js.Proj * * Proj objects provide transformation methods for point coordinates * between geodetic latitude/longitude and a projected coordinate system. * once they have been initialized with a projection code. Loading Loading
lib/proj4js.js +14 −5 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ $Id: Proj.js 2956 2007-07-09 12:17:52Z steven $ */ /** * Proj4js * Namespace: Proj4js * * Proj4js is a JavaScript library to transform point coordinates from one * coordinate system to another, including datum transformations. Loading Loading @@ -126,7 +126,7 @@ Proj4js = { // Short cut if the datums are identical. if( source.compare_datums( dest ) ) { return point; // in this case, zero is sucess, //return point; // in this case, zero is sucess, // whereas cs_compare_datums returns 1 to indicate TRUE // confusing, should fix this } Loading Loading @@ -204,14 +204,20 @@ Proj4js = { * Override this in applications to report error messages or throw exceptions. */ reportError: function(msg) { //console.log(msg); console.log(msg); }, /** * * Title: Private Methods * The following properties and methods are intended for internal use only. * * This is a minimal implementation of JavaScript inheritance methods so that * Proj4js can be used as a stand-alone library. * These are copies of the equivalent OpenLayers methods at v2.7 * */ /** * Function: extend * Copy all properties of a source object to a destination object. Modifies * the passed in destination object. Any properties on the source object Loading Loading @@ -290,6 +296,9 @@ Proj4js = { }; }, /** * The following properties and methods handle dynamic loading of JSON objects. * /** * Property: scriptName * {String} The filename of this script without any path. Loading Loading @@ -381,7 +390,7 @@ Proj4js = { /** * Class: Proj4js.Proj * * Proj objects provide transformation methods for point coordinates * between geodetic latitude/longitude and a projected coordinate system. * once they have been initialized with a projection code. Loading