Assorted missing requires
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
goog.provide('ol.reproj.Image');
|
||||
|
||||
goog.require('ol.events');
|
||||
goog.require('ol.events.EventType');
|
||||
goog.require('ol');
|
||||
goog.require('ol.ImageBase');
|
||||
goog.require('ol.ImageState');
|
||||
goog.require('ol.events');
|
||||
goog.require('ol.events.EventType');
|
||||
goog.require('ol.extent');
|
||||
goog.require('ol.reproj');
|
||||
goog.require('ol.reproj.Triangulation');
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
goog.provide('ol.reproj');
|
||||
|
||||
goog.require('ol');
|
||||
goog.require('ol.dom');
|
||||
goog.require('ol.extent');
|
||||
goog.require('ol.math');
|
||||
@@ -16,18 +17,18 @@ goog.require('ol.proj');
|
||||
* @type {boolean}
|
||||
* @private
|
||||
*/
|
||||
ol.reproj.browserAntialiasesClip_ = (function(winNav, winChrome) {
|
||||
ol.reproj.browserAntialiasesClip_ = (function(global) {
|
||||
// Adapted from http://stackoverflow.com/questions/4565112/javascript-how-to-find-out-if-the-user-browser-is-chrome
|
||||
var isOpera = winNav.userAgent.indexOf('OPR') > -1;
|
||||
var isIEedge = winNav.userAgent.indexOf('Edge') > -1;
|
||||
var isOpera = global.navigator.userAgent.indexOf('OPR') > -1;
|
||||
var isIEedge = global.navigator.userAgent.indexOf('Edge') > -1;
|
||||
return !(
|
||||
!winNav.userAgent.match('CriOS') && // Not Chrome on iOS
|
||||
winChrome !== null && winChrome !== undefined && // Has chrome in window
|
||||
winNav.vendor === 'Google Inc.' && // Vendor is Google.
|
||||
!global.navigator.userAgent.match('CriOS') && // Not Chrome on iOS
|
||||
global.chrome !== null && global.chrome !== undefined && // Has chrome in window
|
||||
global.navigator.vendor === 'Google Inc.' && // Vendor is Google.
|
||||
isOpera == false && // Not Opera
|
||||
isIEedge == false // Not Edge
|
||||
);
|
||||
})(ol.global.navigator, ol.global.chrome);
|
||||
})(ol.global);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
goog.provide('ol.reproj.Tile');
|
||||
|
||||
goog.require('ol');
|
||||
goog.require('ol.Tile');
|
||||
goog.require('ol.events');
|
||||
goog.require('ol.events.EventType');
|
||||
@@ -320,7 +321,8 @@ ol.reproj.Tile.prototype.load = function() {
|
||||
});
|
||||
|
||||
if (leftToLoad === 0) {
|
||||
ol.global.setTimeout(this.reproject_.bind(this), 0);
|
||||
var global = ol.global;
|
||||
global.setTimeout(this.reproject_.bind(this), 0);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
goog.provide('ol.reproj.Triangulation');
|
||||
|
||||
goog.require('ol');
|
||||
goog.require('ol.extent');
|
||||
goog.require('ol.math');
|
||||
goog.require('ol.proj');
|
||||
|
||||
Reference in New Issue
Block a user