Add initial exports and externs

This commit is contained in:
Tom Payne
2012-09-26 18:22:40 +02:00
parent 3b11398f35
commit 546f1f4b9f
11 changed files with 205 additions and 8 deletions

112
externs/ol.js Normal file
View File

@@ -0,0 +1,112 @@
/**
* @externs
*/
/**
* @type {Object}
*/
var olx;
/**
* @interface
*/
olx.MapOptionsExtern = function() {};
/**
* @type {ol.Coordinate|undefined}
*/
olx.MapOptionsExtern.prototype.center;
/**
* @type {boolean|undefined}
*/
olx.MapOptionsExtern.prototype.doubleClickZoom;
/**
* @type {boolean|undefined}
*/
olx.MapOptionsExtern.prototype.dragPan;
/**
* @type {ol.Collection|undefined}
*/
olx.MapOptionsExtern.prototype.interactions;
/**
* @type {boolean|undefined}
*/
olx.MapOptionsExtern.prototype.keyboard;
/**
* @type {number|undefined}
*/
olx.MapOptionsExtern.prototype.keyboardPanOffset;
/**
* @type {ol.Collection|undefined}
*/
olx.MapOptionsExtern.prototype.layers;
/**
* @type {boolean|undefined}
*/
olx.MapOptionsExtern.prototype.mouseWheelZoom;
/**
* @type {ol.Projection|string|undefined}
*/
olx.MapOptionsExtern.prototype.projection;
/**
* @type {ol.RendererHint|undefined}
*/
olx.MapOptionsExtern.prototype.renderer;
/**
* @type {Array.<ol.RendererHint>|undefined}
*/
olx.MapOptionsExtern.prototype.renderers;
/**
* @type {number|undefined}
*/
olx.MapOptionsExtern.prototype.resolution;
/**
* @type {boolean|undefined}
*/
olx.MapOptionsExtern.prototype.rotate;
/**
* @type {boolean|undefined}
*/
olx.MapOptionsExtern.prototype.shiftDragZoom;
/**
* @type {ol.Projection|string|undefined}
*/
olx.MapOptionsExtern.prototype.userProjection;
/**
* @type {number|undefined}
*/
olx.MapOptionsExtern.prototype.zoom;