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