Select to view content in your preferred language

StreamLayer graphic-add event in 4x

181
0
06-27-2022 06:57 AM
MichaelWen_Timmons
Occasional Contributor

I'm attempting to rewrite a JS API Widget that was written in 3x in 4x.

The widget uses a StreamLayer's 'graphic-add' event to process features/graphics retrieved from the stream.

However I saw that there's no analogous event in 4x's StreamLayer or StreamLayerView.  I tried 'data-received' but it doesn't seem to fire when expected. 

Are there examples on how to create and use a StreamLayer to process data streams from a custom socket layer in 4x?

 

0 Kudos
0 Replies