FeatureLayer from multiple geodatabase files

265
1
09-06-2017 04:43 PM
JeffSiemens
New Contributor II

We have a use case whereby we would like users to be able to download different offline areas, and to be able to view the data from those offline areas all at once.

For example, user downloads area A, then area B, then area C. While offline, the user would then be able to pan and zoom around the map, looking at areas A, B, C seamlessly. 

It appears that this sort of functionality would not be possible to build offline because:

A) FeatureLayer and FeatureTable can only source a single geodatabase table.

B) FeatureLayer and FeatureTable are not extensible. 

Is there any way to accomplish this sort of functionality, or are there any plans in the Runtime API to support it?

The only way I can think of is to create multiple feature layers, but that means that when querying the feature, we would need to query multiple layers and aggregate the results into one, so as to give the appearance of there being only a single layer.

0 Kudos
1 Reply
dotMorten_esri
Esri Frequent Contributor

The way to accomplish it is to create multiple featurelayers - one for each table in each geodatabase. You are right you'll have to merge the results, but that could easily be accomplished with LINQ using the SelectMany method.

0 Kudos