laptop and a wrench

Bug

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

Zuletzt veröffentlicht: August 6, 2018 ArcGIS API for JavaScript
Bug-ID-Nummer BUG-000113026
EingereichtApril 6, 2018
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS API for JavaScript
Gefunden in Version4.6
BetriebssystemWindows OS
Betriebssystemversion10.0 64 Bit
StatusNon-Reproducible

Zusätzliche Informationen

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",};

Schritte zur Reproduzierung

Bug-ID: BUG-000113026

Software:

  • ArcGIS API for JavaScript

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln