diff --git a/src/Symbols/PointSymbol.js b/src/Symbols/PointSymbol.js index 4aec3e6..e2764c5 100644 --- a/src/Symbols/PointSymbol.js +++ b/src/Symbols/PointSymbol.js @@ -58,7 +58,7 @@ export var PointSymbol = Symbol.extend({ }, _fillStyles: function () { - if (this._symbolJson.outline && this._symbolJson.size > 0) { + if (this._symbolJson.outline && this._symbolJson.size > 0 && this._symbolJson.outline.style !== 'esriSLSNull') { this._styles.stroke = true; this._styles.weight = this.pixelValue(this._symbolJson.outline.width); this._styles.color = this.colorValue(this._symbolJson.outline.color); diff --git a/src/Symbols/PolygonSymbol.js b/src/Symbols/PolygonSymbol.js index 07b2b4e..82b6603 100644 --- a/src/Symbols/PolygonSymbol.js +++ b/src/Symbols/PolygonSymbol.js @@ -9,7 +9,11 @@ export var PolygonSymbol = Symbol.extend({ initialize: function (symbolJson, options) { Symbol.prototype.initialize.call(this, symbolJson, options); if (symbolJson) { - this._lineStyles = lineSymbol(symbolJson.outline, options).style(); + if (symbolJson.outline && symbolJson.outline.style === 'esriSLSNull') { + this._lineStyles = { weight: 0 }; + } else { + this._lineStyles = lineSymbol(symbolJson.outline, options).style(); + } this._fillStyles(); } },