Hello,
I am putting together a file worker map that will be used to locate vans around the city. The vans have a day time and night time location (one asset #, two locations). In the hope of simplifying the field work I would like to create a multipoint feature that has day and night locations for each van. There is a attribute the field workers will use to mark the van found, which is the attribute the point is symbolize off of. I would like the data to allow a worker to choose a daytime van location, check the found box, and have the symbology for both the day and night point to change to the found symbol. I need to be able to symbolize the day and night locations differently so that field workers can easily identify day vs night locations, when I create the multipoint feature with two locations per asset I cant find a way to symbolize the day vs night location different for one asset. The goal is to have both day and night locations to be marked found for one asset if the field worker finds it during the day or at night.
I would appreciate any thoughts, thanks
You can't symbolize parts of a multipart feature differently. All parts of the same feature will look the same.
Multipoint is not the way to go here. Instead:
// Calculation Attribute rule on Van FC
// Field: empty
// Triggers: Update
// Exclude from application evaluation
// if the value of Found didn't change, abort
if($feature.Found == $originalfeature.Found) {
return
}
// get the corresponding point
var van_id = $feature.VanID
var g_id = $feature.GlobalID
var same_van_other_time = First(Filter($featureset, "VanID = @VAN_id AND GlobalID <> @g_id"))
// safety check: if no other feature was found, abort
if(same_van_other_time == null) {
return
}
// return a dictionary that tells the geodatabase to edit the other feature
return {
edit: [{
className: "NameOfTheVanFC",
updates: [{
{globalID: same_van_other_time.GlobalID, attributes: {Found: $feature.Found}}
}]
}]
}
Now when a worker updates the Found attribute of a van, the rule searches for the corresponding feature and updates its Found attribute automatically.
You can then symbolize the point fc by unique values, choosing Time and Found as unique fields. This should give you a symbology of ("Day, Found"; "Day , Not Found"; "Night, Found"; "Night, Not Found").