Closed jccartwright closed 1 year ago
comment inadvertently placed on issue #28
@jccartwright - the recommended public property to watch is the suspended property. When true, the layer isn't visible for some reason (e.g. out of scale range, not compatible with current spatial reference).
replaced visibleAtCurrentScale property with suspended property
There is a visibleAtCurrentScale property on esri/views/layers/FeatureLayerView which does not appear to be documented. You can see it used in a sample JSAPI app.
Given a MapView with a FeatureLayer using a scale dependency, this "visibleAtCurrentScale" property seems to correctly reflect whether the features are actually drawn in the view. The documented "visible" property is always true regardless of the scale and whether the features display in the view.
Is this an appropriate use of the visibleAtCurrentScale property and is there any documentation that I'm missing?