Select to view content in your preferred language

Create empty FeatureLayer and fill manually with items

675
2
Jump to solution
05-25-2023 05:09 AM
padmalcom
Occasional Contributor

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?

0 Kudos
1 Solution

Accepted Solutions
RamaChintapalli
Esri Contributor

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-layer

Thanks
Rama

View solution in original post

2 Replies
RamaChintapalli
Esri Contributor

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-layer

Thanks
Rama

padmalcom
Occasional Contributor

Thanks @RamaChintapalli, I managed to load our POIs into the FeatureCollectionLayer and display them.

0 Kudos