AnsweredAssumed Answered

FeatureLayer from Runtime geodatabase

Question asked by philojuan on May 27, 2015
Latest reply on May 28, 2015 by philojuan

I have a runtime geodatabase that was generated with labels and also scale dependencies. (

 

I have added the Geodatabase and the FeatureLayers to the map and I can see them but I do not see the labels. The enableLabels property for the FeatureLayer looks like its readonly and setting it to true in QML does not seem to be doing anything. What do I need to do to get the labels displayed?

 

Second question is whether or not layer groups are supported in runtime content ?

 

Thanks in advance

 

Testing code is prettty simple

 

 

 

    Map {

        anchors.fill: parent

        focus : true

        ArcGISLocalTiledLayer {

            path: runtimePath + viewModel.appData.localAerials.localPath

        }

        FeatureLayer {

            id: featureLayer0

            featureTable: localReadOnlyData.geodatabaseFeatureTableByLayerId(3)

            enableLabels: true

        }

        FeatureLayer {

            id: featureLayer1

            featureTable: localReadOnlyData.geodatabaseFeatureTableByLayerId(2)

            enableLabels: true

        }

        FeatureLayer {

            id: featureLayer2

            featureTable: localReadOnlyData.geodatabaseFeatureTableByLayerId(1)

            enableLabels: true

        }

        FeatureLayer {

            id: featureLayer3

            featureTable: localReadOnlyData.geodatabaseFeatureTableByLayerId(0)

            enableLabels: true

        }

        onStatusChanged: {

            if (status == Enums.MapStatusReady)

                extent = initialExtent

        }

    }

 

Geodatabase {

        id: localReadOnlyData

        path: runtimePath + viewModel.appData.localGDB

        onValidChanged: {

            if (localReadOnlyData.valid)

                localGeoDatabaseLoaded(localReadOnlyData);

        }

    }

Outcomes