Rename ol.style.SymbolizerLiteral to ol.style.Literal
This commit is contained in:
@@ -84,7 +84,7 @@ ol.Feature.prototype.getGeometry = function() {
|
||||
|
||||
|
||||
/**
|
||||
* @return {Array.<ol.style.SymbolizerLiteral>} Symbolizer literals.
|
||||
* @return {Array.<ol.style.Literal>} Symbolizer literals.
|
||||
*/
|
||||
ol.Feature.prototype.getSymbolizerLiterals = function() {
|
||||
var symbolizerLiterals = null;
|
||||
|
||||
@@ -409,7 +409,7 @@ ol.layer.Vector.prototype.groupFeaturesBySymbolizerLiteral =
|
||||
uniqueLiterals[key] = featuresBySymbolizer.length;
|
||||
featuresBySymbolizer.push([
|
||||
/** @type {Array.<ol.Feature>} */ ([]),
|
||||
/** @type {ol.style.SymbolizerLiteral} */ (literal),
|
||||
/** @type {ol.style.Literal} */ (literal),
|
||||
/** @type {Array} */ ([])
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ goog.require('ol.style.PointLiteral');
|
||||
goog.require('ol.style.PolygonLiteral');
|
||||
goog.require('ol.style.ShapeLiteral');
|
||||
goog.require('ol.style.ShapeType');
|
||||
goog.require('ol.style.SymbolizerLiteral');
|
||||
goog.require('ol.style.Literal');
|
||||
goog.require('ol.style.TextLiteral');
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ ol.renderer.canvas.VectorRenderer.prototype.getMaxSymbolSize = function() {
|
||||
/**
|
||||
* @param {ol.geom.GeometryType} type Geometry type.
|
||||
* @param {Array.<ol.Feature>} features Array of features.
|
||||
* @param {ol.style.SymbolizerLiteral} symbolizer Symbolizer.
|
||||
* @param {ol.style.Literal} symbolizer Symbolizer.
|
||||
* @param {Array} data Additional data.
|
||||
* @return {boolean} true if deferred, false if rendered.
|
||||
*/
|
||||
|
||||
@@ -6,7 +6,7 @@ goog.require('ol.expr');
|
||||
goog.require('ol.expr.Expression');
|
||||
goog.require('ol.expr.Literal');
|
||||
goog.require('ol.style.Symbolizer');
|
||||
goog.require('ol.style.SymbolizerLiteral');
|
||||
goog.require('ol.style.Literal');
|
||||
|
||||
|
||||
/**
|
||||
@@ -20,7 +20,7 @@ ol.style.LineLiteralOptions;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {ol.style.SymbolizerLiteral}
|
||||
* @extends {ol.style.Literal}
|
||||
* @param {ol.style.LineLiteralOptions} options Line literal options.
|
||||
*/
|
||||
ol.style.LineLiteral = function(options) {
|
||||
@@ -42,7 +42,7 @@ ol.style.LineLiteral = function(options) {
|
||||
this.strokeWidth = options.strokeWidth;
|
||||
|
||||
};
|
||||
goog.inherits(ol.style.LineLiteral, ol.style.SymbolizerLiteral);
|
||||
goog.inherits(ol.style.LineLiteral, ol.style.Literal);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -2,18 +2,18 @@ goog.provide('ol.style.Point');
|
||||
goog.provide('ol.style.PointLiteral');
|
||||
|
||||
goog.require('ol.style.Symbolizer');
|
||||
goog.require('ol.style.SymbolizerLiteral');
|
||||
goog.require('ol.style.Literal');
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {ol.style.SymbolizerLiteral}
|
||||
* @extends {ol.style.Literal}
|
||||
*/
|
||||
ol.style.PointLiteral = function() {
|
||||
goog.base(this);
|
||||
};
|
||||
goog.inherits(ol.style.PointLiteral, ol.style.SymbolizerLiteral);
|
||||
goog.inherits(ol.style.PointLiteral, ol.style.Literal);
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ goog.require('ol.expr');
|
||||
goog.require('ol.expr.Expression');
|
||||
goog.require('ol.expr.Literal');
|
||||
goog.require('ol.style.Symbolizer');
|
||||
goog.require('ol.style.SymbolizerLiteral');
|
||||
goog.require('ol.style.Literal');
|
||||
|
||||
|
||||
/**
|
||||
@@ -22,7 +22,7 @@ ol.style.PolygonLiteralOptions;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {ol.style.SymbolizerLiteral}
|
||||
* @extends {ol.style.Literal}
|
||||
* @param {ol.style.PolygonLiteralOptions} options Polygon literal options.
|
||||
*/
|
||||
ol.style.PolygonLiteral = function(options) {
|
||||
@@ -72,7 +72,7 @@ ol.style.PolygonLiteral = function(options) {
|
||||
'strokeColor and strokeOpacity and strokeWidth must be set');
|
||||
|
||||
};
|
||||
goog.inherits(ol.style.PolygonLiteral, ol.style.SymbolizerLiteral);
|
||||
goog.inherits(ol.style.PolygonLiteral, ol.style.Literal);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -3,7 +3,7 @@ goog.provide('ol.style.Style');
|
||||
goog.require('ol.Feature');
|
||||
goog.require('ol.geom.GeometryType');
|
||||
goog.require('ol.style.Rule');
|
||||
goog.require('ol.style.SymbolizerLiteral');
|
||||
goog.require('ol.style.Literal');
|
||||
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ ol.style.Style = function(options) {
|
||||
|
||||
/**
|
||||
* @param {ol.Feature} feature Feature.
|
||||
* @return {Array.<ol.style.SymbolizerLiteral>} Symbolizer literals for the
|
||||
* @return {Array.<ol.style.Literal>} Symbolizer literals for the
|
||||
* feature.
|
||||
*/
|
||||
ol.style.Style.prototype.apply = function(feature) {
|
||||
@@ -46,7 +46,7 @@ ol.style.Style.prototype.apply = function(feature) {
|
||||
|
||||
/**
|
||||
* @param {ol.Feature} feature Feature.
|
||||
* @return {Array.<ol.style.SymbolizerLiteral>} Default symbolizer literals for
|
||||
* @return {Array.<ol.style.Literal>} Default symbolizer literals for
|
||||
* the feature.
|
||||
*/
|
||||
ol.style.Style.applyDefaultStyle = function(feature) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
goog.provide('ol.style.Symbolizer');
|
||||
goog.provide('ol.style.SymbolizerLiteral');
|
||||
goog.provide('ol.style.Literal');
|
||||
|
||||
goog.require('ol.Feature');
|
||||
|
||||
@@ -8,15 +8,15 @@ goog.require('ol.Feature');
|
||||
/**
|
||||
* @constructor
|
||||
*/
|
||||
ol.style.SymbolizerLiteral = function() {};
|
||||
ol.style.Literal = function() {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {ol.style.SymbolizerLiteral} symbolizerLiteral Symbolizer literal to
|
||||
* @param {ol.style.Literal} symbolizerLiteral Symbolizer literal to
|
||||
* compare to.
|
||||
* @return {boolean} Is the passed symbolizer literal equal to this instance?
|
||||
*/
|
||||
ol.style.SymbolizerLiteral.prototype.equals = goog.abstractMethod;
|
||||
ol.style.Literal.prototype.equals = goog.abstractMethod;
|
||||
|
||||
|
||||
|
||||
@@ -28,6 +28,6 @@ ol.style.Symbolizer = function() {};
|
||||
|
||||
/**
|
||||
* @param {ol.Feature=} opt_feature Feature for evaluating expressions.
|
||||
* @return {ol.style.SymbolizerLiteral} Literal symbolizer.
|
||||
* @return {ol.style.Literal} Literal symbolizer.
|
||||
*/
|
||||
ol.style.Symbolizer.prototype.createLiteral = goog.abstractMethod;
|
||||
|
||||
@@ -6,7 +6,7 @@ goog.require('ol.expr');
|
||||
goog.require('ol.expr.Expression');
|
||||
goog.require('ol.expr.Literal');
|
||||
goog.require('ol.style.Symbolizer');
|
||||
goog.require('ol.style.SymbolizerLiteral');
|
||||
goog.require('ol.style.Literal');
|
||||
|
||||
|
||||
/**
|
||||
@@ -22,7 +22,7 @@ ol.style.TextLiteralOptions;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {ol.style.SymbolizerLiteral}
|
||||
* @extends {ol.style.Literal}
|
||||
* @param {ol.style.TextLiteralOptions} options Text literal options.
|
||||
*/
|
||||
ol.style.TextLiteral = function(options) {
|
||||
@@ -48,7 +48,7 @@ ol.style.TextLiteral = function(options) {
|
||||
this.opacity = options.opacity;
|
||||
|
||||
};
|
||||
goog.inherits(ol.style.TextLiteral, ol.style.SymbolizerLiteral);
|
||||
goog.inherits(ol.style.TextLiteral, ol.style.Literal);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user