Select to view content in your preferred language

Are there performance consequences to adding multiple FeatureLayers that point to the same feature service layer to a .NET Runtime MapView?

613
3
06-26-2019 11:48 AM
JeremyBridges
Frequent Contributor

Using the technique in the following doc, one could add multiple feature layers that point to the same layer:

https://developers.arcgis.com/net/latest/wpf/api-reference/html/M_Esri_ArcGISRuntime_Mapping_Feature...

One might do this to group or stack the same layer's data to show it in different contexts. Does Runtime cache the features and rendering artifacts so that there's not double of everything from that feature layer sitting in memory?

0 Kudos
3 Replies
JoeHershman
MVP Regular Contributor

I don't think Runtime will allow it (at least not at 100.2, have not tried in 100.5).  Although what I tried was different, we tried to add multiple layers from the same offline table.

If it is possible, there won't be any advantage from a rendering perspective, they will be seen as completely seperate

Thanks,
-Joe
0 Kudos
dotMorten_esri
Esri Notable Contributor

You are correct that currently you can only do one layer per table for _offline_ tables. However online tables doesn't have this limitation.

However consider each table will be making queries to fetch data, so make sure there's at least not overlap in the data being fetched, but you are going to see a lot more webrequests, which could hurt performance.

Generally I'd recommend one layer, and use the renderers and definition expressions to control different pieces of the data to show, rather than manage it with multiple players.

0 Kudos
JeremyBridges
Frequent Contributor

Very good. We'll make sure to only use one layer per URI. Thanks for the input!

0 Kudos