Fix remaining type issues
This commit is contained in:
@@ -390,9 +390,9 @@ const PluggableMap = function(options) {
|
||||
* @param {module:ol/control/Control} control Control.
|
||||
* @this {module:ol/PluggableMap}
|
||||
*/
|
||||
function(control) {
|
||||
(function(control) {
|
||||
control.setMap(this);
|
||||
}.bind(this));
|
||||
}).bind(this));
|
||||
|
||||
listen(this.controls, CollectionEventType.ADD,
|
||||
/**
|
||||
@@ -415,9 +415,9 @@ const PluggableMap = function(options) {
|
||||
* @param {module:ol/interaction/Interaction} interaction Interaction.
|
||||
* @this {module:ol/PluggableMap}
|
||||
*/
|
||||
function(interaction) {
|
||||
(function(interaction) {
|
||||
interaction.setMap(this);
|
||||
}.bind(this));
|
||||
}).bind(this));
|
||||
|
||||
listen(this.interactions, CollectionEventType.ADD,
|
||||
/**
|
||||
|
||||
@@ -151,9 +151,9 @@ const OverviewMap = function(opt_options) {
|
||||
/**
|
||||
* @param {module:ol/layer/Layer} layer Layer.
|
||||
*/
|
||||
function(layer) {
|
||||
(function(layer) {
|
||||
ovmap.addLayer(layer);
|
||||
}.bind(this));
|
||||
}).bind(this));
|
||||
}
|
||||
|
||||
const box = document.createElement('DIV');
|
||||
|
||||
@@ -232,11 +232,6 @@ function createStyleDefaults() {
|
||||
zIndex: 0
|
||||
});
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {Array.<module:ol/style/Style>}
|
||||
* @private
|
||||
*/
|
||||
DEFAULT_STYLE_ARRAY = [DEFAULT_STYLE];
|
||||
|
||||
}
|
||||
|
||||
@@ -83,12 +83,6 @@ import {add as addTransformFunc, clear as clearTransformFuncs, get as getTransfo
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Meters per unit lookup table.
|
||||
* @const
|
||||
* @type {Object.<module:ol/proj/Units, number>}
|
||||
* @api
|
||||
*/
|
||||
export {METERS_PER_UNIT};
|
||||
|
||||
|
||||
|
||||
@@ -130,14 +130,14 @@ const WebGLMapRenderer = function(map) {
|
||||
* @return {number} Priority.
|
||||
* @this {module:ol/renderer/webgl/Map}
|
||||
*/
|
||||
function(element) {
|
||||
(function(element) {
|
||||
const tileCenter = /** @type {module:ol/coordinate~Coordinate} */ (element[1]);
|
||||
const tileResolution = /** @type {number} */ (element[2]);
|
||||
const deltaX = tileCenter[0] - this.focus_[0];
|
||||
const deltaY = tileCenter[1] - this.focus_[1];
|
||||
return 65536 * Math.log(tileResolution) +
|
||||
Math.sqrt(deltaX * deltaX + deltaY * deltaY) / tileResolution;
|
||||
}.bind(this),
|
||||
}).bind(this),
|
||||
/**
|
||||
* @param {Array.<*>} element Element.
|
||||
* @return {string} Key.
|
||||
|
||||
Reference in New Issue
Block a user