Hello,
Using ArcGIS Enterprise 11.1, I published a scaled based symbology FeatureServer and MapServer:
https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/scale-based-symbol-classes.htm
I created a JS API 4.27 application and noticed that my FeatureLayer does not honour this scaled based symbology. Digging a little more, I understood that it depends on its instantiation:
- Instantiation with portalItem, works:
const poiFLLayerByPortalItem = new FeatureLayer({
portalItem: {
id: "c3d95b4ce5df4882a6f73723492af00f"
}
});
- Instantiation with a featureServer URL does not work:
const poiFLLayerByFLId = new FeatureLayer({
});
- Instantiation with a MapServer URL does not work either:
It looks a bit weird to me: I would expect all featureLayer to be consistent in behaviour when consuming the same service. Is it a bug or somehow a feature I would miss ? Should a case be opened ?
Thanks,
Nicolas
PS: can share a URL illustrating this issue to JS API team if you want to have a quick look