Geolocation tracking captures the longitude and latitude coordinates of caseworkers as they process a case. When you enable this feature for a case type, you can view the location of the caseworker in a Google Map.
You must include the UI-Kit-7 ruleset in your ruleset stack to use geolocation tracking in your application.
To enable tracking
Copy pyGeolocationTrackingIsEnabled to your application to enable tracking. The default condition is true for all clients at all times.You can overwrite this rule to suit your custom requirements. For example, you can set up a privilege or role specifically for mobile users ( tests HavePrivilege() or HaveRole() for a true condition.
When building on a standard Pega application, Application Express creates the pyGeolocationTrackingIsEnabled when rule at the lowest application layer generated (for example, at the framework layer if also generating an implementation layer). This enables geolocation tracking for every case type in the application.
To control geolocation tracking at the case type level, use the Geolocation tracking option on the Case Designer Details tab.
Consult local laws for possible restrictions on location tracking.
Using the HTML5 Geolocation API, the system captures pxLongitude and pxLatitude property values, puts them on the pyRecordHistoryList.pxResults page, and stores the coordinates on the history table.
A dynamic system setting containing your Google Map API license key must be present on your system in order to enable Map it functionality.
When you first attempt to open a map, the browser displays a notification asking whether you want to permit location tracking. Make your selection in the prompt. If "yes", the browser displays the map. Do not click "X" to close the prompt. Doing so may disable geolocation tracking. To fix, refresh the browser and make your selection.