jccartwright / exb-widgets

sandbox for custom widgets to be used in ArcGIS Experience Builder
0 stars 1 forks source link

FeatureLayerView visibleAtCurrentScale property #27

Closed jccartwright closed 1 year ago

jccartwright commented 1 year ago

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?

jccartwright commented 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).

jccartwright commented 1 year ago

replaced visibleAtCurrentScale property with suspended property