Transformed

This commit is contained in:
Tim Schaub
2017-12-11 16:29:33 -07:00
parent 1cdb6a66f0
commit 7f47883c48
737 changed files with 22216 additions and 21609 deletions

View File

@@ -1,9 +1,9 @@
goog.provide('ol.VectorTile');
goog.require('ol');
goog.require('ol.Tile');
goog.require('ol.TileState');
/**
* @module ol/VectorTile
*/
import _ol_ from './index.js';
import _ol_Tile_ from './Tile.js';
import _ol_TileState_ from './TileState.js';
/**
* @constructor
@@ -15,9 +15,9 @@ goog.require('ol.TileState');
* @param {ol.TileLoadFunctionType} tileLoadFunction Tile load function.
* @param {olx.TileOptions=} opt_options Tile options.
*/
ol.VectorTile = function(tileCoord, state, src, format, tileLoadFunction, opt_options) {
var _ol_VectorTile_ = function(tileCoord, state, src, format, tileLoadFunction, opt_options) {
ol.Tile.call(this, tileCoord, state, opt_options);
_ol_Tile_.call(this, tileCoord, state, opt_options);
/**
* @type {number}
@@ -74,18 +74,19 @@ ol.VectorTile = function(tileCoord, state, src, format, tileLoadFunction, opt_op
this.url_ = src;
};
ol.inherits(ol.VectorTile, ol.Tile);
_ol_.inherits(_ol_VectorTile_, _ol_Tile_);
/**
* @inheritDoc
*/
ol.VectorTile.prototype.disposeInternal = function() {
_ol_VectorTile_.prototype.disposeInternal = function() {
this.features_ = null;
this.replayGroups_ = {};
this.state = ol.TileState.ABORT;
this.state = _ol_TileState_.ABORT;
this.changed();
ol.Tile.prototype.disposeInternal.call(this);
_ol_Tile_.prototype.disposeInternal.call(this);
};
@@ -94,8 +95,8 @@ ol.VectorTile.prototype.disposeInternal = function() {
* @return {ol.Extent} The extent.
* @api
*/
ol.VectorTile.prototype.getExtent = function() {
return this.extent_ || ol.VectorTile.DEFAULT_EXTENT;
_ol_VectorTile_.prototype.getExtent = function() {
return this.extent_ || _ol_VectorTile_.DEFAULT_EXTENT;
};
@@ -104,7 +105,7 @@ ol.VectorTile.prototype.getExtent = function() {
* @return {ol.format.Feature} Feature format.
* @api
*/
ol.VectorTile.prototype.getFormat = function() {
_ol_VectorTile_.prototype.getFormat = function() {
return this.format_;
};
@@ -115,7 +116,7 @@ ol.VectorTile.prototype.getFormat = function() {
* @return {Array.<ol.Feature|ol.render.Feature>} Features.
* @api
*/
ol.VectorTile.prototype.getFeatures = function() {
_ol_VectorTile_.prototype.getFeatures = function() {
return this.features_;
};
@@ -123,7 +124,7 @@ ol.VectorTile.prototype.getFeatures = function() {
/**
* @inheritDoc
*/
ol.VectorTile.prototype.getKey = function() {
_ol_VectorTile_.prototype.getKey = function() {
return this.url_;
};
@@ -134,7 +135,7 @@ ol.VectorTile.prototype.getKey = function() {
* @return {ol.proj.Projection} Feature projection.
* @api
*/
ol.VectorTile.prototype.getProjection = function() {
_ol_VectorTile_.prototype.getProjection = function() {
return this.projection_;
};
@@ -144,17 +145,17 @@ ol.VectorTile.prototype.getProjection = function() {
* @param {string} key Key.
* @return {ol.render.ReplayGroup} Replay group.
*/
ol.VectorTile.prototype.getReplayGroup = function(layer, key) {
return this.replayGroups_[ol.getUid(layer) + ',' + key];
_ol_VectorTile_.prototype.getReplayGroup = function(layer, key) {
return this.replayGroups_[_ol_.getUid(layer) + ',' + key];
};
/**
* @inheritDoc
*/
ol.VectorTile.prototype.load = function() {
if (this.state == ol.TileState.IDLE) {
this.setState(ol.TileState.LOADING);
_ol_VectorTile_.prototype.load = function() {
if (this.state == _ol_TileState_.IDLE) {
this.setState(_ol_TileState_.LOADING);
this.tileLoadFunction_(this, this.url_);
this.loader_(null, NaN, null);
}
@@ -167,7 +168,7 @@ ol.VectorTile.prototype.load = function() {
* @param {ol.proj.Projection} dataProjection Data projection.
* @param {ol.Extent} extent Extent.
*/
ol.VectorTile.prototype.onLoad = function(features, dataProjection, extent) {
_ol_VectorTile_.prototype.onLoad = function(features, dataProjection, extent) {
this.setProjection(dataProjection);
this.setFeatures(features);
this.setExtent(extent);
@@ -177,8 +178,8 @@ ol.VectorTile.prototype.onLoad = function(features, dataProjection, extent) {
/**
* Handler for tile load errors.
*/
ol.VectorTile.prototype.onError = function() {
this.setState(ol.TileState.ERROR);
_ol_VectorTile_.prototype.onError = function() {
this.setState(_ol_TileState_.ERROR);
};
@@ -194,7 +195,7 @@ ol.VectorTile.prototype.onError = function() {
* @param {ol.Extent} extent The extent.
* @api
*/
ol.VectorTile.prototype.setExtent = function(extent) {
_ol_VectorTile_.prototype.setExtent = function(extent) {
this.extent_ = extent;
};
@@ -205,9 +206,9 @@ ol.VectorTile.prototype.setExtent = function(extent) {
* @param {Array.<ol.Feature>} features Features.
* @api
*/
ol.VectorTile.prototype.setFeatures = function(features) {
_ol_VectorTile_.prototype.setFeatures = function(features) {
this.features_ = features;
this.setState(ol.TileState.LOADED);
this.setState(_ol_TileState_.LOADED);
};
@@ -218,7 +219,7 @@ ol.VectorTile.prototype.setFeatures = function(features) {
* @param {ol.proj.Projection} projection Feature projection.
* @api
*/
ol.VectorTile.prototype.setProjection = function(projection) {
_ol_VectorTile_.prototype.setProjection = function(projection) {
this.projection_ = projection;
};
@@ -228,8 +229,8 @@ ol.VectorTile.prototype.setProjection = function(projection) {
* @param {string} key Key.
* @param {ol.render.ReplayGroup} replayGroup Replay group.
*/
ol.VectorTile.prototype.setReplayGroup = function(layer, key, replayGroup) {
this.replayGroups_[ol.getUid(layer) + ',' + key] = replayGroup;
_ol_VectorTile_.prototype.setReplayGroup = function(layer, key, replayGroup) {
this.replayGroups_[_ol_.getUid(layer) + ',' + key] = replayGroup;
};
@@ -238,7 +239,7 @@ ol.VectorTile.prototype.setReplayGroup = function(layer, key, replayGroup) {
* @param {ol.FeatureLoader} loader Feature loader.
* @api
*/
ol.VectorTile.prototype.setLoader = function(loader) {
_ol_VectorTile_.prototype.setLoader = function(loader) {
this.loader_ = loader;
};
@@ -247,4 +248,5 @@ ol.VectorTile.prototype.setLoader = function(loader) {
* @const
* @type {ol.Extent}
*/
ol.VectorTile.DEFAULT_EXTENT = [0, 0, 4096, 4096];
_ol_VectorTile_.DEFAULT_EXTENT = [0, 0, 4096, 4096];
export default _ol_VectorTile_;