Select to view content in your preferred language

Stream Layer properties configure on application load. Extending Experience builder

225
1
4 weeks ago
wadsonmakari
Occasional Contributor

Hi all,

 

I am working on an application that consumes a Stream Layer to display the location and attributes of my assets on a map. I have configured a GeoEvent service using ESRI GeoEvent and published a track aware Stream Layer my Enterprise Portal. 

I am developing the app by extending ESRI Experience builder. I would like to symbolise the Stream layer using an attribute field so different assets will be displayed with different symbols on the map. In addition I would like to also set the ageReceived purgeOption property to say 30 minutes so that all events that are older than this automatically drop off the map.

It looks like I can't symbolise using attributes in ESRI Portal or set the purgeOptions property. Apparently these properties can be set programmatically.

Where do I put the code to set these properties  when my experience loads if I am developing my app extending Experience builder? Is there an onAppLoad event?

Any pointers will be greatly appreciated.

 

0 Kudos
1 Reply
RJSunderman
Esri Regular Contributor

Hello Wadson --

A lead from the team working on supporting stream services and stream layers more broadly across the ArcGIS Enterprise reviewed the incident you opened with Esri Technical Support (Case #04081256). They've let me know that attribute-driven symbology (configuring a web map's layer to display feature records differently based on each feature record's attribute values) was introduced into the Web Map Viewer with the 11.2 release of Portal for ArcGIS. At earlier versions, the map viewer was able to consume and display a map prepared in ArcGIS Pro (where attribute symbology is configurable), but the map viewer was not able to edit, change, or reconfigure the attribute-driven symbology. Other options for configuring attribute-driven symbology she mentioned were using ArcGIS Assistant to edit the JSON and define a desired renderer. If you have deployed ArcGIS Enterprise 11.2 or later, I would definitely recommend working with Esri Technical Support to figure out how to use controls available in the Web Map Viewer to do what you are trying to do.

Information on customizing Experience Builder is rather thin. The team supporting stream service and stream layer enhancements have not worked with the team supporting Experience Builder recently and are not aware of any plans to extend ExB to enhance stream layer support. My understanding, based on what I've been told, is that stream layer support in ExB is limited to displaying feature records as they are broadcast by the stream service -- there is no available option for users to configure the decay or automatic removal of "old" feature records from the layer's display.

Some good news, however, is that your concept of setting a "maximum duration" property may be coming to the web map viewer. The team is working to design a way to enable users to specify a date / time so that feature records which are older than the specified value will not be displayed. Support for tracked assets and configurable properties like maxDuration might be coming out later this year for the map viewer web application -- but these are not options available to users today.

Please continue working with Esri Technical Support to capture product requirements for your operational concept. The analyst can help feed those back to the development team.

-- RJ

0 Kudos