I would like to have a hosted feature layer with multiple editors, but limit each editor (or group of editors) to a defined geographical area (geofence polygon).
The next challenge would be to take it a step further and incorporate the GetUser function.
For example, you could do something like this:
\\ Sarah Smith needs to work at Property1
var mobileWorker = GetUser($layer).fullName
var areaName = FeatureSetByName($map, 'Property Boundaries', ['PropertyName'])
var areaLocation = First(Intersects($feature, areaName))
if (mobileWorker = 'Sarah Smith' && areaLocation = 'Property1') {
return true
} else {
return false
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.