Labels not visible in FeatureLayer

4621
1
06-25-2014 12:27 AM
LuisRodríguez_González
New Contributor III
I am developing an application with ArcGIS Runtime SDK for Java 10.2.3. This application creates a Map that includes a FeatureLayer created from the feature table (this table contains points) from a local geodatabase.

The local geodatabase has been created by sharing a MXD document as runtime content. In that MXD document the labels are enabled.

The feature layer shows points but not the labels.

This is the source code:
 GeodatabaseFeatureTable gdbFeatureTable = gdbPuntosEtiquetas.getGeodatabaseFeatureTableByLayerId(0);
 capaEtiquetas = new FeatureLayer(gdbFeatureTable);
 map.getLayers().add(capaEtiquetas);


I have tried to enable the labels with this code:
class EventosMapaListener implements MapEventListener
{
        @Override
        public void mapReady(MapEvent event)
        {
         // System.out.println("mapReady");
         capaEtiquetas.setEnableLabels(true);
        }
}

But the application fails y returns the following error:
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: com.esri.map.FeatureLayer.nativeEnableLabels(JZ)V
 at com.esri.map.FeatureLayer.nativeEnableLabels(Native Method)
 at com.esri.map.FeatureLayer.setEnableLabels(Unknown Source)
 at es.esri.emt.navegador.layers.EtiquetasLayers$EventosMapaListener.mapReady(EtiquetasLayers.java:196)
 at com.esri.map.JMap.i(Unknown Source)


How can I show the feature layer labes?

Regards.
0 Kudos
1 Reply
AneteFridrihsone
New Contributor II

Hello,

Did you figure out how to do it? I have very similar issue only in Android. Its a struggle to find any info on this.

0 Kudos