Files
openlayers/externs/oli.js
Éric Lemoine 124b195d3e handleMapPostrender returns undefined
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.
2013-05-10 14:04:50 +02:00

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) {};