Remove hint enum from view constructor
This commit is contained in:
@@ -13,6 +13,7 @@ goog.require('ol.MapProperty');
|
||||
goog.require('ol.Object');
|
||||
goog.require('ol.TileQueue');
|
||||
goog.require('ol.View');
|
||||
goog.require('ol.ViewHint');
|
||||
goog.require('ol.asserts');
|
||||
goog.require('ol.control');
|
||||
goog.require('ol.dom');
|
||||
@@ -976,11 +977,11 @@ ol.Map.prototype.handlePostRender = function() {
|
||||
var maxNewLoads = maxTotalLoading;
|
||||
if (frameState) {
|
||||
var hints = frameState.viewHints;
|
||||
if (hints[ol.View.Hint.ANIMATING]) {
|
||||
if (hints[ol.ViewHint.ANIMATING]) {
|
||||
maxTotalLoading = this.loadTilesWhileAnimating_ ? 8 : 0;
|
||||
maxNewLoads = 2;
|
||||
}
|
||||
if (hints[ol.View.Hint.INTERACTING]) {
|
||||
if (hints[ol.ViewHint.INTERACTING]) {
|
||||
maxTotalLoading = this.loadTilesWhileInteracting_ ? 8 : 0;
|
||||
maxNewLoads = 2;
|
||||
}
|
||||
@@ -1279,8 +1280,8 @@ ol.Map.prototype.renderFrame_ = function(time) {
|
||||
this.postRenderFunctions_, frameState.postRenderFunctions);
|
||||
|
||||
var idle = this.preRenderFunctions_.length === 0 &&
|
||||
!frameState.viewHints[ol.View.Hint.ANIMATING] &&
|
||||
!frameState.viewHints[ol.View.Hint.INTERACTING] &&
|
||||
!frameState.viewHints[ol.ViewHint.ANIMATING] &&
|
||||
!frameState.viewHints[ol.ViewHint.INTERACTING] &&
|
||||
!ol.extent.equals(frameState.extent, this.previousExtent_);
|
||||
|
||||
if (idle) {
|
||||
|
||||
Reference in New Issue
Block a user