Hi,
How can I do the respectCurrentMapScale in ths 4.15 api versaion?
Thanks.
I suppose you are talking here about a v3.x property of the Legend | API Reference | ArcGIS API for JavaScript 3.33.
It looks like in v4.x of the JS API you have to use the respectLayerVisibility property: Legend | ArcGIS API for JavaScript 4.16
This property
Determines whether to respect the properties of the layers in the map that control the legend's visibility (
minScale,maxScale,legendEnabled).When the
respectLayerVisibilityproperty of the legend is set tofalse, the legend elements for each layer in the map will always display, thus disregarding theminScale,maxScale, andlegendEnabledproperties for each layer in the map.
Does this answer your question?
BR,
Egge-Jan