Select to view content in your preferred language

Feature Layer (FME disappearing) when using in app QML

994
4
Jump to solution
05-16-2021 07:46 PM
EricAtkinson1
Regular Contributor

Hey all,

Got a weird issue when I use the layer (green highlighted) in my app it disappears but the red highlighted never disappears.  

Screen Shot 2021-05-17 at 12.36.53 pm.png

 

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

0 Kudos
1 Solution

Accepted Solutions
EricAtkinson1
Regular Contributor

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

View solution in original post

0 Kudos
4 Replies
EricAtkinson1
Regular Contributor

I am using a web map for my App and using runtime 100.10

0 Kudos
JamesBallard1
Esri Regular Contributor

@EricAtkinson1 ,

 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:

https://github.com/Esri/arcgis-runtime-samples-qt/blob/main/ArcGISRuntimeSDKQt_QMLSamples/DisplayInf...

https://developers.arcgis.com/qt/qml/api-reference/qml-esri-arcgisruntime-layer.html#subLayerContent...

If you're able to share the web map we may be able to better assist.

0 Kudos
EricAtkinson1
Regular Contributor

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

0 Kudos
JamesBallard1
Esri Regular Contributor

Sounds good @EricAtkinson1 . Glad it's working now.

0 Kudos