Hi,
I'm working on a dashboard to use with my indoor data. I would like to have some of the floor switcher capability and figured I could do this with the category picker. The data as a level id field that is laid out like: Site.Building.Floor
I figured I could use this to parse the data and create L1, L2, L3 categories no matter the building the floor is in. I'm using this script, but am getting an error.
FeatureSetByPortalItem(Portal('https://gti.tampaairport.com/portal'), '6b9d1760ef9547048514f8617ee63324', 5, ['LEVEL_ID','ObjectID'], false)
var disp_txt = ["LEVEL_ID"];
if (Find("L1", disp_txt, 0)>-1) {
return "Level 1";
} else if (Find("L2", disp_txt, 0)>-1) {
return "Level 2";
} else if (Find("L3", disp_txt, 0)>-1) {
return "Level 3";
} else {
return "Other"
}