Transformed
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
goog.provide('ol.format.TextFeature');
|
||||
|
||||
goog.require('ol');
|
||||
goog.require('ol.format.Feature');
|
||||
goog.require('ol.format.FormatType');
|
||||
|
||||
/**
|
||||
* @module ol/format/TextFeature
|
||||
*/
|
||||
import _ol_ from '../index.js';
|
||||
import _ol_format_Feature_ from '../format/Feature.js';
|
||||
import _ol_format_FormatType_ from '../format/FormatType.js';
|
||||
|
||||
/**
|
||||
* @classdesc
|
||||
@@ -15,10 +15,11 @@ goog.require('ol.format.FormatType');
|
||||
* @abstract
|
||||
* @extends {ol.format.Feature}
|
||||
*/
|
||||
ol.format.TextFeature = function() {
|
||||
ol.format.Feature.call(this);
|
||||
var _ol_format_TextFeature_ = function() {
|
||||
_ol_format_Feature_.call(this);
|
||||
};
|
||||
ol.inherits(ol.format.TextFeature, ol.format.Feature);
|
||||
|
||||
_ol_.inherits(_ol_format_TextFeature_, _ol_format_Feature_);
|
||||
|
||||
|
||||
/**
|
||||
@@ -26,7 +27,7 @@ ol.inherits(ol.format.TextFeature, ol.format.Feature);
|
||||
* @private
|
||||
* @return {string} Text.
|
||||
*/
|
||||
ol.format.TextFeature.prototype.getText_ = function(source) {
|
||||
_ol_format_TextFeature_.prototype.getText_ = function(source) {
|
||||
if (typeof source === 'string') {
|
||||
return source;
|
||||
} else {
|
||||
@@ -38,15 +39,15 @@ ol.format.TextFeature.prototype.getText_ = function(source) {
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.format.TextFeature.prototype.getType = function() {
|
||||
return ol.format.FormatType.TEXT;
|
||||
_ol_format_TextFeature_.prototype.getType = function() {
|
||||
return _ol_format_FormatType_.TEXT;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.format.TextFeature.prototype.readFeature = function(source, opt_options) {
|
||||
_ol_format_TextFeature_.prototype.readFeature = function(source, opt_options) {
|
||||
return this.readFeatureFromText(
|
||||
this.getText_(source), this.adaptOptions(opt_options));
|
||||
};
|
||||
@@ -59,13 +60,13 @@ ol.format.TextFeature.prototype.readFeature = function(source, opt_options) {
|
||||
* @protected
|
||||
* @return {ol.Feature} Feature.
|
||||
*/
|
||||
ol.format.TextFeature.prototype.readFeatureFromText = function(text, opt_options) {};
|
||||
_ol_format_TextFeature_.prototype.readFeatureFromText = function(text, opt_options) {};
|
||||
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.format.TextFeature.prototype.readFeatures = function(source, opt_options) {
|
||||
_ol_format_TextFeature_.prototype.readFeatures = function(source, opt_options) {
|
||||
return this.readFeaturesFromText(
|
||||
this.getText_(source), this.adaptOptions(opt_options));
|
||||
};
|
||||
@@ -78,13 +79,13 @@ ol.format.TextFeature.prototype.readFeatures = function(source, opt_options) {
|
||||
* @protected
|
||||
* @return {Array.<ol.Feature>} Features.
|
||||
*/
|
||||
ol.format.TextFeature.prototype.readFeaturesFromText = function(text, opt_options) {};
|
||||
_ol_format_TextFeature_.prototype.readFeaturesFromText = function(text, opt_options) {};
|
||||
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.format.TextFeature.prototype.readGeometry = function(source, opt_options) {
|
||||
_ol_format_TextFeature_.prototype.readGeometry = function(source, opt_options) {
|
||||
return this.readGeometryFromText(
|
||||
this.getText_(source), this.adaptOptions(opt_options));
|
||||
};
|
||||
@@ -97,13 +98,13 @@ ol.format.TextFeature.prototype.readGeometry = function(source, opt_options) {
|
||||
* @protected
|
||||
* @return {ol.geom.Geometry} Geometry.
|
||||
*/
|
||||
ol.format.TextFeature.prototype.readGeometryFromText = function(text, opt_options) {};
|
||||
_ol_format_TextFeature_.prototype.readGeometryFromText = function(text, opt_options) {};
|
||||
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.format.TextFeature.prototype.readProjection = function(source) {
|
||||
_ol_format_TextFeature_.prototype.readProjection = function(source) {
|
||||
return this.readProjectionFromText(this.getText_(source));
|
||||
};
|
||||
|
||||
@@ -113,7 +114,7 @@ ol.format.TextFeature.prototype.readProjection = function(source) {
|
||||
* @protected
|
||||
* @return {ol.proj.Projection} Projection.
|
||||
*/
|
||||
ol.format.TextFeature.prototype.readProjectionFromText = function(text) {
|
||||
_ol_format_TextFeature_.prototype.readProjectionFromText = function(text) {
|
||||
return this.defaultDataProjection;
|
||||
};
|
||||
|
||||
@@ -121,7 +122,7 @@ ol.format.TextFeature.prototype.readProjectionFromText = function(text) {
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.format.TextFeature.prototype.writeFeature = function(feature, opt_options) {
|
||||
_ol_format_TextFeature_.prototype.writeFeature = function(feature, opt_options) {
|
||||
return this.writeFeatureText(feature, this.adaptOptions(opt_options));
|
||||
};
|
||||
|
||||
@@ -133,13 +134,13 @@ ol.format.TextFeature.prototype.writeFeature = function(feature, opt_options) {
|
||||
* @protected
|
||||
* @return {string} Text.
|
||||
*/
|
||||
ol.format.TextFeature.prototype.writeFeatureText = function(feature, opt_options) {};
|
||||
_ol_format_TextFeature_.prototype.writeFeatureText = function(feature, opt_options) {};
|
||||
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.format.TextFeature.prototype.writeFeatures = function(
|
||||
_ol_format_TextFeature_.prototype.writeFeatures = function(
|
||||
features, opt_options) {
|
||||
return this.writeFeaturesText(features, this.adaptOptions(opt_options));
|
||||
};
|
||||
@@ -152,13 +153,13 @@ ol.format.TextFeature.prototype.writeFeatures = function(
|
||||
* @protected
|
||||
* @return {string} Text.
|
||||
*/
|
||||
ol.format.TextFeature.prototype.writeFeaturesText = function(features, opt_options) {};
|
||||
_ol_format_TextFeature_.prototype.writeFeaturesText = function(features, opt_options) {};
|
||||
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.format.TextFeature.prototype.writeGeometry = function(
|
||||
_ol_format_TextFeature_.prototype.writeGeometry = function(
|
||||
geometry, opt_options) {
|
||||
return this.writeGeometryText(geometry, this.adaptOptions(opt_options));
|
||||
};
|
||||
@@ -171,4 +172,5 @@ ol.format.TextFeature.prototype.writeGeometry = function(
|
||||
* @protected
|
||||
* @return {string} Text.
|
||||
*/
|
||||
ol.format.TextFeature.prototype.writeGeometryText = function(geometry, opt_options) {};
|
||||
_ol_format_TextFeature_.prototype.writeGeometryText = function(geometry, opt_options) {};
|
||||
export default _ol_format_TextFeature_;
|
||||
|
||||
Reference in New Issue
Block a user