Without this we get the following warning from the compiler: JSC_EXPORTED_FUNCTION_UNKNOWN_RETURN_TYPE. Unable to determine return type for exported function ol.control.Control.prototype.handleMapPostrender at ../src/ol/control/control.js line 79 : 51 I'm not sure why explicitely specifying the return type is required here.
30 lines
410 B
JavaScript
30 lines
410 B
JavaScript
/**
|
|
* @externs
|
|
*/
|
|
|
|
|
|
/**
|
|
* @type {Object}
|
|
*/
|
|
var oli;
|
|
|
|
|
|
/**
|
|
* @interface
|
|
*/
|
|
oli.control.Control = function() {};
|
|
|
|
|
|
/**
|
|
* @param {ol.MapEvent} mapEvent Map event.
|
|
* @return {undefined} Undefined.
|
|
*/
|
|
oli.control.Control.prototype.handleMapPostrender = function(mapEvent) {};
|
|
|
|
|
|
/**
|
|
* @param {ol.Map} map Map.
|
|
* @return {undefined} Undefined.
|
|
*/
|
|
oli.control.Control.prototype.setMap = function(map) {};
|