With JSAPI4.10 How to get the graphics array in streamlayer

415
3
01-17-2019 01:42 AM
huhq
by
New Contributor

With JSAPI4.10 How to get the graphics array in streamlayer?

streamLayerView.graphics.length is 0

0 Kudos
3 Replies
JohnGrayson
Esri Regular Contributor
huhq
by
New Contributor

Since StreamlayerView has " data-received" and "updating", how and when to build a list according the newest data by calling queryLatestObservations()?

0 Kudos
by Anonymous User
Not applicable

I would recommend watching "updating" property on StreamLayerView. You could find an example here: StreamLayerView | API Reference | ArcGIS API for JavaScript 4.10