We want to create an empty FeatureLayer in the new ArcGIS Maps SDK and fill it with items coming from our backend. Documentation only tells how to create a FeatureLayer from URLs or files (see https://developers.arcgis.com/kotlin/sample-code/add-feature-layers/).
We are on Maps SDK 200.1.
Can you help out?
Hi,To work with data from external sources, you can also use a FeatureCollectionLayer. We don't have a sample yet for it in Kotlin 200.x, but here is an equivalent one in java in 100.x that can be translated to Kotlin.https://github.com/Esri/arcgis-runtime-samples-android/tree/main/java/feature-collection-layerThanksRama
Thanks @RamaChintapalli, I managed to load our POIs into the FeatureCollectionLayer and display them.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.