Rename _ol_layer_TileProperty_ to TileProperty
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
import {inherits} from '../index.js';
|
import {inherits} from '../index.js';
|
||||||
import LayerType from '../LayerType.js';
|
import LayerType from '../LayerType.js';
|
||||||
import Layer from '../layer/Layer.js';
|
import Layer from '../layer/Layer.js';
|
||||||
import _ol_layer_TileProperty_ from '../layer/TileProperty.js';
|
import TileProperty from '../layer/TileProperty.js';
|
||||||
import {assign} from '../obj.js';
|
import {assign} from '../obj.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -53,9 +53,7 @@ inherits(TileLayer, Layer);
|
|||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
TileLayer.prototype.getPreload = function() {
|
TileLayer.prototype.getPreload = function() {
|
||||||
return (
|
return (/** @type {number} */ this.get(TileProperty.PRELOAD));
|
||||||
/** @type {number} */ this.get(_ol_layer_TileProperty_.PRELOAD)
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -75,7 +73,7 @@ TileLayer.prototype.getSource;
|
|||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
TileLayer.prototype.setPreload = function(preload) {
|
TileLayer.prototype.setPreload = function(preload) {
|
||||||
this.set(_ol_layer_TileProperty_.PRELOAD, preload);
|
this.set(TileProperty.PRELOAD, preload);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -86,9 +84,7 @@ TileLayer.prototype.setPreload = function(preload) {
|
|||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
TileLayer.prototype.getUseInterimTilesOnError = function() {
|
TileLayer.prototype.getUseInterimTilesOnError = function() {
|
||||||
return (
|
return (/** @type {boolean} */ this.get(TileProperty.USE_INTERIM_TILES_ON_ERROR));
|
||||||
/** @type {boolean} */ this.get(_ol_layer_TileProperty_.USE_INTERIM_TILES_ON_ERROR)
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -99,7 +95,6 @@ TileLayer.prototype.getUseInterimTilesOnError = function() {
|
|||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
TileLayer.prototype.setUseInterimTilesOnError = function(useInterimTilesOnError) {
|
TileLayer.prototype.setUseInterimTilesOnError = function(useInterimTilesOnError) {
|
||||||
this.set(
|
this.set(TileProperty.USE_INTERIM_TILES_ON_ERROR, useInterimTilesOnError);
|
||||||
_ol_layer_TileProperty_.USE_INTERIM_TILES_ON_ERROR, useInterimTilesOnError);
|
|
||||||
};
|
};
|
||||||
export default TileLayer;
|
export default TileLayer;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
import {inherits} from '../index.js';
|
import {inherits} from '../index.js';
|
||||||
import LayerType from '../LayerType.js';
|
import LayerType from '../LayerType.js';
|
||||||
import {assert} from '../asserts.js';
|
import {assert} from '../asserts.js';
|
||||||
import _ol_layer_TileProperty_ from '../layer/TileProperty.js';
|
import TileProperty from '../layer/TileProperty.js';
|
||||||
import VectorLayer from '../layer/Vector.js';
|
import VectorLayer from '../layer/Vector.js';
|
||||||
import _ol_layer_VectorTileRenderType_ from '../layer/VectorTileRenderType.js';
|
import _ol_layer_VectorTileRenderType_ from '../layer/VectorTileRenderType.js';
|
||||||
import {assign} from '../obj.js';
|
import {assign} from '../obj.js';
|
||||||
@@ -64,9 +64,7 @@ inherits(VectorTileLayer, VectorLayer);
|
|||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
VectorTileLayer.prototype.getPreload = function() {
|
VectorTileLayer.prototype.getPreload = function() {
|
||||||
return (
|
return (/** @type {number} */ this.get(TileProperty.PRELOAD));
|
||||||
/** @type {number} */ this.get(_ol_layer_TileProperty_.PRELOAD)
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -77,9 +75,7 @@ VectorTileLayer.prototype.getPreload = function() {
|
|||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
VectorTileLayer.prototype.getUseInterimTilesOnError = function() {
|
VectorTileLayer.prototype.getUseInterimTilesOnError = function() {
|
||||||
return (
|
return (/** @type {boolean} */ this.get(TileProperty.USE_INTERIM_TILES_ON_ERROR));
|
||||||
/** @type {boolean} */ this.get(_ol_layer_TileProperty_.USE_INTERIM_TILES_ON_ERROR)
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -90,7 +86,7 @@ VectorTileLayer.prototype.getUseInterimTilesOnError = function() {
|
|||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
VectorTileLayer.prototype.setPreload = function(preload) {
|
VectorTileLayer.prototype.setPreload = function(preload) {
|
||||||
this.set(_ol_layer_TileProperty_.PRELOAD, preload);
|
this.set(TileProperty.PRELOAD, preload);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -101,8 +97,7 @@ VectorTileLayer.prototype.setPreload = function(preload) {
|
|||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
VectorTileLayer.prototype.setUseInterimTilesOnError = function(useInterimTilesOnError) {
|
VectorTileLayer.prototype.setUseInterimTilesOnError = function(useInterimTilesOnError) {
|
||||||
this.set(
|
this.set(TileProperty.USE_INTERIM_TILES_ON_ERROR, useInterimTilesOnError);
|
||||||
_ol_layer_TileProperty_.USE_INTERIM_TILES_ON_ERROR, useInterimTilesOnError);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user