laptop and a wrench

Bug

The symbolPreview does not render a 'simple-fill' symbol.

Last Published: August 6, 2018 ArcGIS API for JavaScript
Bug ID Number BUG-000113026
SubmittedApril 6, 2018
Last ModifiedJune 5, 2024
Applies toArcGIS API for JavaScript
Version found4.6
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusNon-Reproducible

Additional Information

Could not reproduce. Appears as user error. Use this code: require([ "esri/symbols/support/symbolPreview", "esri/symbols/SimpleFillSymbol", "dojo/domReady!" ], function(symbolPreview, SimpleFillSymbol) { var sfs = new SimpleFillSymbol({ type: "simple-fill", color: "red", style:"solid" }); symbolPreview.renderPreviewHTML(sfs,{ node: document.getElementById("viewDiv"), size: 25 }); });

Workaround

Do not add the style property to the symbol and the symbol renders correctly.
 
var sym = {type: "simple-fill",color: "red",};

Steps to Reproduce

Bug ID: BUG-000113026

Software:

  • ArcGIS API for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options