From within a ExperienceBuilder 1.14 custom widget, using JS API 4.x, i am loading featurelayers from an internal mapservice. Using "new FeatureLayer(...)", etc.
The issue is that the some of the featurelayers are showing an incorrect renderer. When i manually query the featurelayer via REST, in the json results i see that the renderer that the mapservice is sending me is the same incorrect renderer that JS API is displaying.
However, when i display that mapservice with ArcGIS Online Map Viewer, MapViewer is displaying the correct renderer! So how is it that MapViewer somehow magically gets the correct renderer, but the mapservice refuses to provide it to anyone else?
I'm thinking that ESRI MapServer and/or JS API has a bug here, and MapViewer is somehow working around that ESRI bug using secret undocumented functionality.
Has anyone else run across this sort of issue?
Typically the problem shows up with line/polygon symbology where there's a lighter fill combined with a darker border. The incorrect renderer has only a SimplerRenderer with esriSLSSolid of the dark border color instead. Massively ugly and unreadable on the map.
Unfortunately, due to the internal data and internal app, i can't provide a reproduceable example here.