Optional zIndex for text symbolizers

This commit is contained in:
Tim Schaub
2013-08-26 15:50:45 -06:00
parent b9a44d2db5
commit 43c581ef5f
5 changed files with 69 additions and 7 deletions
+11 -6
View File
@@ -9,7 +9,8 @@ goog.require('ol.style.Literal');
* fontFamily: string,
* fontSize: number,
* text: string,
* opacity: number}}
* opacity: number,
* zIndex: (number|undefined)}}
*/
ol.style.TextLiteralOptions;
@@ -42,6 +43,9 @@ ol.style.TextLiteral = function(options) {
/** @type {number} */
this.opacity = options.opacity;
/** @type {number|undefined} */
this.zIndex = options.zIndex;
};
goog.inherits(ol.style.TextLiteral, ol.style.Literal);
@@ -49,9 +53,10 @@ goog.inherits(ol.style.TextLiteral, ol.style.Literal);
/**
* @inheritDoc
*/
ol.style.TextLiteral.prototype.equals = function(textLiteral) {
return this.color == textLiteral.color &&
this.fontFamily == textLiteral.fontFamily &&
this.fontSize == textLiteral.fontSize &&
this.opacity == textLiteral.opacity;
ol.style.TextLiteral.prototype.equals = function(other) {
return this.color == other.color &&
this.fontFamily == other.fontFamily &&
this.fontSize == other.fontSize &&
this.opacity == other.opacity &&
this.zIndex == other.zIndex;
};