Select to view content in your preferred language

Labels not visible in feature layers coming from geodatabase

278
1
03-21-2025 05:03 AM
Labels (2)
DjordjeNikolic
New Contributor

When we set up labels on the feature layers in ArcGIS Online ‘Visualization’ page, the labels are shown correctyl in our mobile app.


We use PortalItem to fetch the feature layer, and it is presented on the map with the labels.
Sometime, if we use GeodatabaseSyncTask to download feature layers info geodatabase file, and then show the layers from the database on the map, the labels are missing.

We have set enableLabels flag to true.


Can the labels be downloaded altogether with features?
Do we need Labels API to achieve this?
Is it supported in the current ArcGIS flutter SDK?

0 Kudos
1 Reply
kossiyovo
Esri Contributor

The GeodatabaseSyncTask takes the feature service offline directly, which is why it doesn't include any labels.

Instead of taking the feature service offline directly as a geodatabase, I suggest adding the feature service to a web map, designing the labels as needed, and then taking the entire map offline. This approach will store the label definitions directly in the map item, ensuring they work as expected.

Regarding the client-side labeling, it will be supported in all feature layers once we add the labeling APIs.

Product Engineer II at Esri, Google Developer Expert for Flutter/Dart
0 Kudos