Update externs and ol.HAVE_PROJ4JS for new proj4js API

This commit is contained in:
Andreas Hocevar
2014-07-08 01:01:54 +02:00
parent 971c1137bc
commit dc09b0a27f
2 changed files with 20 additions and 70 deletions
+19 -69
View File
@@ -1,92 +1,42 @@
/** /**
* @externs * @externs
* @see http://trac.osgeo.org/proj4js/ * @see http://proj4js.org/
*/ */
/** /**
* @type {Object} * @type {Function}
*/ */
var Proj4js = {}; var proj4 = function() {};
/** /**
* @type {Object.<string, string>} * @type {Object.<string, string>}
*/ */
Proj4js.defs; proj4.defs;
/**
* @type {function(string)}
*/
Proj4js.reportError;
/** /**
* @constructor * @constructor
* @param {number} x * @param {Object|string} proj
* @param {number} y
*/ */
Proj4js.Point = function(x, y) {}; proj4.Proj = function(proj) {};
/**
* @type {string}
*/
proj4.Proj.prototype.axis;
/**
* @type {string}
*/
proj4.Proj.prototype.units;
/** /**
* @type {number} * @type {number}
*/ */
Proj4js.Point.prototype.x; proj4.Proj.prototype.to_meter;
/**
* @type {number}
*/
Proj4js.Point.prototype.y;
/**
* @constructor
* @param {string} srsCode
* @param {Function=} opt_callback
*/
Proj4js.Proj = function(srsCode, opt_callback) {};
/**
* @type {string}
*/
Proj4js.Proj.prototype.axis;
/**
* @type {string}
*/
Proj4js.Proj.prototype.title;
/**
* @type {string}
*/
Proj4js.Proj.prototype.units;
/**
* @type {string}
*/
Proj4js.Proj.prototype.srsCode;
/**
* @type {number}
*/
Proj4js.Proj.prototype.to_meter;
/**
* @nosideeffects
* @param {Proj4js.Proj} source
* @param {Proj4js.Proj} dest
* @param {Proj4js.Point|{x:number, y:number}} point
* @return {Proj4js.Point}
*/
Proj4js.transform = function(source, dest, point) {return null;};
+1 -1
View File
@@ -19,7 +19,7 @@ goog.require('ol.sphere.NORMAL');
* @const * @const
* @type {boolean} * @type {boolean}
*/ */
ol.HAVE_PROJ4JS = ol.ENABLE_PROJ4JS && typeof Proj4js == 'object'; ol.HAVE_PROJ4JS = ol.ENABLE_PROJ4JS && typeof proj4 == 'function';
/** /**