First of all, I apologize for my English since it is from Google Translator since I am Spanish.
I want my fire layer to see the maneuver data that I have in another related layer and this layer has three fields with the same domain in case there are several maneuvers at the same time and another field for aerial means and with the help of phend and the little I know about arcade I have gotten up to something like this but it still doesn't work for me
// Acceder a la capa "Maniobras" por su nombre
var Maniobra = FeatureSetByName($map, "Maniobras");
// Filtrar las maniobras relacionadas con el incendio actual
// Utilizando 'incendio_id' como el campo de unión
var maniobrasRelacionadas = Filter(Maniobra, "incendio_id = $feature.incendio_id");
// Inicializar un array para almacenar los tipos de maniobras y medio aéreo rellenos
var detallesRellenos = [];
// Iterar sobre las maniobras relacionadas y verificar si los campos de maniobras están rellenos
for (var maniobrat in maniobrasRelacionadas) {
if (!IsEmpty(maniobrat.maniobra_1)) {
detallesRellenos.push(maniobrat.maniobra_1);
}
if (!IsEmpty(maniobrat.maniobra_2)) {
detallesRellenos.push(maniobrat.maniobra_2);
}
if (!IsEmpty(maniobrat.maniobra_3)) {
detallesRellenos.push(maniobrat.maniobra_3);
}
if (!IsEmpty(maniobrat.medio_aereo)) {
detallesRellenos.push(maniobrat.medio_aereo);
}
}
// Si hay detalles rellenos, devolverlos en un formato legible
if (detallesRellenos.length > 0) {
return "Detalles: " + detallesRellenos.join(", ");
} else {
// Si no hay detalles rellenos, devolver un mensaje indicativo
return "No hay detalles rellenos.";
}
Obviously all help is very welcome.