@@ -6523,6 +6523,13 @@ olx.ViewState;
|
||||
olx.ViewState.prototype.center;
|
||||
|
||||
|
||||
/**
|
||||
* @type {ol.proj.Projection}
|
||||
* @api
|
||||
*/
|
||||
olx.ViewState.prototype.projection;
|
||||
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @api
|
||||
|
||||
@@ -108,8 +108,7 @@ ol.interaction.PinchZoom.handleDragEvent_ = function(mapBrowserEvent) {
|
||||
* @this {ol.interaction.PinchZoom}
|
||||
* @private
|
||||
*/
|
||||
ol.interaction.PinchZoom.handleUpEvent_ =
|
||||
function(mapBrowserEvent) {
|
||||
ol.interaction.PinchZoom.handleUpEvent_ = function(mapBrowserEvent) {
|
||||
if (this.targetPointers.length < 2) {
|
||||
var map = mapBrowserEvent.map;
|
||||
var view = map.getView();
|
||||
@@ -134,8 +133,7 @@ ol.interaction.PinchZoom.handleUpEvent_ =
|
||||
* @this {ol.interaction.PinchZoom}
|
||||
* @private
|
||||
*/
|
||||
ol.interaction.PinchZoom.handleDownEvent_ =
|
||||
function(mapBrowserEvent) {
|
||||
ol.interaction.PinchZoom.handleDownEvent_ = function(mapBrowserEvent) {
|
||||
if (this.targetPointers.length >= 2) {
|
||||
var map = mapBrowserEvent.map;
|
||||
this.anchor_ = null;
|
||||
|
||||
@@ -944,13 +944,11 @@ ol.Map.prototype.handlePostRender = function() {
|
||||
if (!goog.isNull(frameState)) {
|
||||
var hints = frameState.viewHints;
|
||||
if (hints[ol.ViewHint.ANIMATING]) {
|
||||
maxTotalLoading = this.loadTilesWhileAnimating_ === true ?
|
||||
8 : 0;
|
||||
maxTotalLoading = this.loadTilesWhileAnimating_ ? 8 : 0;
|
||||
maxNewLoads = 2;
|
||||
}
|
||||
if (hints[ol.ViewHint.INTERACTING]) {
|
||||
maxTotalLoading = this.loadTilesWhileInteracting_ === true ?
|
||||
8 : 0;
|
||||
maxTotalLoading = this.loadTilesWhileInteracting_ ? 8 : 0;
|
||||
maxNewLoads = 2;
|
||||
}
|
||||
tileSourceCount = goog.object.getCount(frameState.wantedTiles);
|
||||
|
||||
@@ -115,6 +115,7 @@ ol.View = function(opt_options) {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @const
|
||||
* @type {ol.proj.Projection}
|
||||
*/
|
||||
this.projection_ = ol.proj.createProjection(options.projection, 'EPSG:3857');
|
||||
|
||||
Reference in New Issue
Block a user