Widgets
The widgets can be defined to add a geoprocessor, an editor, or other Esri functionality via custom widgets.
Most TRIRIGA® sample widgets become available when you click the Show Details tab above the map.
Sample widgets
- Geocoder widget
- With the as-delivered geocoder widget, you can direct the map to latitude and longitude coordinates or to an address.
- Editor widget
-
With the as-delivered editor widget, you can draw a line, polygon, or point on a map. The entity is saved on the Esri map if you associate the feature to one of the records in the query. The as-delivered editor widget is named sampleEditor.js. You can use that file as an example of how to create custom editor widgets.
In the as-delivered sample editor widget, a feature can be associated with an IBM® TRIRIGA ID. To associate a feature with an ID, enter a value in one of the number fields or text fields in the information pane. In the sample, the Issue Id field is used. You can use this same method in another editor widget to associate a feature to a value.
You can draw a feature and associate it to an IBM TRIRIGA record by clicking the Show Table tab and selecting the Associate to selected feature icon for the IBM TRIRIGA record in the table. The next time that the record is queried, the feature displays on the map. The IBM TRIRIGA ID is the common ID between IBM TRIRIGA and Esri.
When enabled, the as-delivered editor widget interferes with the bubble marker information provided by the pins. At the time of this release, there is no known workaround.
Custom widgets
Custom widgets are made up of compartmentalized JavaScript code specific to Esri widgets. With this feature, you can add a custom Esri widget that is based on the Esri JavaScript API version 4.15 custom widget might be something as simple as a map overlay or as complex as polygon editing. To define a widget, upload the JavaScript code for the widget into the Code field. After you add the custom JavaScript code to the binary field, that code is injected into the Esri JavaScript viewer and appended to the rendered map at run time.
For more information, see the white paper about EsriJS Widget Construction.