Hey all,
Got a weird issue when I use the layer (green highlighted) in my app it disappears but the red highlighted never disappears.
question is because im calling attributes from that layer how do I add it into my code as a sub folder? for the green highlighted layer I have
for (var i = 0; operationalLayers.count; i++) {
if (operationalLayers.get(i).name === "Hidden from forum") {
featureLayer = operationalLayers.get(i) featureLayer.refreshInterval = 9000 featureLayer.selectionColor = "#02253A"
break
}
}
}
any help would be appreciated.
Eric
Solved! Go to Solution.
Hey James,
Thanks for the reply.... Its been an intermittent bug that sometimes the layer would display and then other times it wouldn't. If I loaded up another app with the same web map in player first it would work. In Web map it was always visible.
I think I have actually fixed it for some reason... I have made a duplicate of the layer and now seems to be displaying all the time.... scratches head.
Thanks James I really appreciate the reply.
Cheers,
Eric
I am using a web map for my App and using runtime 100.10
Thanks for reaching out to the Runtime team. It's hard to say without access to that web map so we can take a look.
My best guess is that you may need to descend into the subLayerContents list and check those.
Here's a related example:
If you're able to share the web map we may be able to better assist.
Hey James,
Thanks for the reply.... Its been an intermittent bug that sometimes the layer would display and then other times it wouldn't. If I loaded up another app with the same web map in player first it would work. In Web map it was always visible.
I think I have actually fixed it for some reason... I have made a duplicate of the layer and now seems to be displaying all the time.... scratches head.
Thanks James I really appreciate the reply.
Cheers,
Eric
Sounds good @EricAtkinson1 . Glad it's working now.