Select to view content in your preferred language

bringing in reference layers

194
6
Jump to solution
2 weeks ago
ChelseaRozek
MVP Regular Contributor

We aren't able to bring in layers from our Portal or ArcGIS Online to use in ArcGIS Flight. We get errors like "You do not have permissions to access this resource or perform this operation" even though they are shared with us. Are there any criteria for which layers work? Like, do they need to be in web mercator? Do they have to be hosted or can they be secured services with saved credentials in AGO? Do they have to be public?

0 Kudos
1 Solution

Accepted Solutions
AndrewBowne
Esri Contributor

Could you try adding a new item in AGOL that points to just /featureServer from your on prem service as opposed to the actual layer index?

 

I don't know if that will make a difference but it's worth a try.  ArcGIS Flight is intended to add the entire feature layer and should provide toggles for each of the sub layers

 

View solution in original post

0 Kudos
6 Replies
AndrewBowne
Esri Contributor

Hi @ChelseaRozek,

I have a few follow up questions for you:

  • Are you using the latest version of the app? (5.2.2)
  • Is your ArcGIS Online account linked to Site Scan or are you logging in as a standalone ArcGIS Online account?
  • Are you working in a connected environment and not offline?
  • Is this happening with all layers or only specific layers?
  • Have you tried logging out of ArcGIS Flight completely and logging back in?

Layers are not required to be shared to the public.  The layers accessible via user permissions should be what is listed.

0 Kudos
ChelseaRozek
MVP Regular Contributor

Hi @AndrewBowne, thanks for taking a look at my post.  Yes, we are on the latest version and have tried logging out and restarting the device. We are connected to the internet in the field. We do not have Site Scan, just AGO. The only layers we can get to work are hosted layers.

I thought maybe the permissions issue was due to setting the referrer URL on some of our items and we indeed don't get that specific error when trying one without any set on it, but the layer never loads on the map. Hence, I wondered if it was a projection issue. Though, a hosted feature layer in our local projection did load in the app. It seems to be that only hosted feature layers are addable. Those services we've published through our own ArcGIS Server and saved credentials for in an item in AGO are not viewable in the app. 

0 Kudos
AndrewBowne
Esri Contributor

Hi @ChelseaRozek.. This is all good information.   The next thing I was going to ask you to try was adding a hosted feature layer to AGOL and seeing if that loads.  You beat me to it and it sounds like you tried that and it worked.

I suspect the issue has to do with the stored creds not being recognized in the ArcGIS Flight app.  Have you tried adding the URL of your on prem ArcGIS Server to the list of trusted servers in ArcGIS Online?  You can find this under: Settings-->Security-->Trusted Servers 

 

 

0 Kudos
ChelseaRozek
MVP Regular Contributor

Our server is at "x.ewashtenaw.org". We already had "ewashtenaw.org", but I just added an additional entry for "x.ewashtenaw.org" just in case. Unfortunately, it still adds without an error, but nothing appears on the map.

Some weird behavior we noticed for this layer is that while the item in AGO is the saved URL to the specific index of one layer in the larger service, in Flight when it's added, it shows visibility toggles for many of the other layers in the larger service. Still, none of them actually appear on the map.

0 Kudos
AndrewBowne
Esri Contributor

Could you try adding a new item in AGOL that points to just /featureServer from your on prem service as opposed to the actual layer index?

 

I don't know if that will make a difference but it's worth a try.  ArcGIS Flight is intended to add the entire feature layer and should provide toggles for each of the sub layers

 

0 Kudos
ChelseaRozek
MVP Regular Contributor

That worked! Thank you so much! 

0 Kudos