Rename ol.layer.TileProperty to ol.layer.Tile.Property
This commit is contained in:
@@ -25,6 +25,7 @@ A number of internal types have been renamed. This will not affect those who us
|
|||||||
* rename `ol.interaction.TranslateEventType` to `ol.interaction.Translate.EventType`
|
* rename `ol.interaction.TranslateEventType` to `ol.interaction.Translate.EventType`
|
||||||
* rename `ol.layer.GroupProperty` to `ol.layer.Group.Property`
|
* rename `ol.layer.GroupProperty` to `ol.layer.Group.Property`
|
||||||
* rename `ol.layer.HeatmapLayerProperty` to `ol.layer.Heatmap.Property`
|
* rename `ol.layer.HeatmapLayerProperty` to `ol.layer.Heatmap.Property`
|
||||||
|
* rename `ol.layer.TileProperty` to `ol.layer.Tile.Property`
|
||||||
* rename `ol.layer.VectorTileRenderType` to `ol.layer.VectorTile.RenderType`
|
* rename `ol.layer.VectorTileRenderType` to `ol.layer.VectorTile.RenderType`
|
||||||
* rename `ol.MapEventType` to `ol.MapEvent.Type`
|
* rename `ol.MapEventType` to `ol.MapEvent.Type`
|
||||||
* rename `ol.MapProperty` to `ol.Map.Property`
|
* rename `ol.MapProperty` to `ol.Map.Property`
|
||||||
|
|||||||
+13
-13
@@ -5,15 +5,6 @@ goog.require('ol.layer.Layer');
|
|||||||
goog.require('ol.obj');
|
goog.require('ol.obj');
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @enum {string}
|
|
||||||
*/
|
|
||||||
ol.layer.TileProperty = {
|
|
||||||
PRELOAD: 'preload',
|
|
||||||
USE_INTERIM_TILES_ON_ERROR: 'useInterimTilesOnError'
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @classdesc
|
* @classdesc
|
||||||
* For layer sources that provide pre-rendered, tiled images in grids that are
|
* For layer sources that provide pre-rendered, tiled images in grids that are
|
||||||
@@ -51,7 +42,7 @@ ol.inherits(ol.layer.Tile, ol.layer.Layer);
|
|||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
ol.layer.Tile.prototype.getPreload = function() {
|
ol.layer.Tile.prototype.getPreload = function() {
|
||||||
return /** @type {number} */ (this.get(ol.layer.TileProperty.PRELOAD));
|
return /** @type {number} */ (this.get(ol.layer.Tile.Property.PRELOAD));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -71,7 +62,7 @@ ol.layer.Tile.prototype.getSource;
|
|||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
ol.layer.Tile.prototype.setPreload = function(preload) {
|
ol.layer.Tile.prototype.setPreload = function(preload) {
|
||||||
this.set(ol.layer.TileProperty.PRELOAD, preload);
|
this.set(ol.layer.Tile.Property.PRELOAD, preload);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -83,7 +74,7 @@ ol.layer.Tile.prototype.setPreload = function(preload) {
|
|||||||
*/
|
*/
|
||||||
ol.layer.Tile.prototype.getUseInterimTilesOnError = function() {
|
ol.layer.Tile.prototype.getUseInterimTilesOnError = function() {
|
||||||
return /** @type {boolean} */ (
|
return /** @type {boolean} */ (
|
||||||
this.get(ol.layer.TileProperty.USE_INTERIM_TILES_ON_ERROR));
|
this.get(ol.layer.Tile.Property.USE_INTERIM_TILES_ON_ERROR));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -95,5 +86,14 @@ ol.layer.Tile.prototype.getUseInterimTilesOnError = function() {
|
|||||||
*/
|
*/
|
||||||
ol.layer.Tile.prototype.setUseInterimTilesOnError = function(useInterimTilesOnError) {
|
ol.layer.Tile.prototype.setUseInterimTilesOnError = function(useInterimTilesOnError) {
|
||||||
this.set(
|
this.set(
|
||||||
ol.layer.TileProperty.USE_INTERIM_TILES_ON_ERROR, useInterimTilesOnError);
|
ol.layer.Tile.Property.USE_INTERIM_TILES_ON_ERROR, useInterimTilesOnError);
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @enum {string}
|
||||||
|
*/
|
||||||
|
ol.layer.Tile.Property = {
|
||||||
|
PRELOAD: 'preload',
|
||||||
|
USE_INTERIM_TILES_ON_ERROR: 'useInterimTilesOnError'
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ goog.provide('ol.layer.VectorTile');
|
|||||||
|
|
||||||
goog.require('ol');
|
goog.require('ol');
|
||||||
goog.require('ol.asserts');
|
goog.require('ol.asserts');
|
||||||
|
goog.require('ol.layer.Tile');
|
||||||
goog.require('ol.layer.Vector');
|
goog.require('ol.layer.Vector');
|
||||||
goog.require('ol.obj');
|
goog.require('ol.obj');
|
||||||
|
|
||||||
@@ -94,7 +95,7 @@ ol.layer.VectorTile.prototype.getUseInterimTilesOnError = function() {
|
|||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
ol.layer.VectorTile.prototype.setPreload = function(preload) {
|
ol.layer.VectorTile.prototype.setPreload = function(preload) {
|
||||||
this.set(ol.layer.TileProperty.PRELOAD, preload);
|
this.set(ol.layer.Tile.Property.PRELOAD, preload);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -106,7 +107,7 @@ ol.layer.VectorTile.prototype.setPreload = function(preload) {
|
|||||||
*/
|
*/
|
||||||
ol.layer.VectorTile.prototype.setUseInterimTilesOnError = function(useInterimTilesOnError) {
|
ol.layer.VectorTile.prototype.setUseInterimTilesOnError = function(useInterimTilesOnError) {
|
||||||
this.set(
|
this.set(
|
||||||
ol.layer.TileProperty.USE_INTERIM_TILES_ON_ERROR, useInterimTilesOnError);
|
ol.layer.Tile.Property.USE_INTERIM_TILES_ON_ERROR, useInterimTilesOnError);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user