AnsweredAssumed Answered

Zoom to Extent of Layer with definitionExpression

Question asked by mjk5000 on May 18, 2020
Latest reply on May 19, 2020 by jballard-esristaff

I am trying to zoom to the extent of a layer that has definitionExpression on it.  I cannot get it to zoom to anything but the world view.  I want to setViewpontGeometry(queryLayer.fullExtent), but this doesn't seem to work.  Do I have to build a view point manually?


Connections {
        target: map

        onOperationalLayersChanged: {
            queryLayer.definitionExpression = app.definitionQuery
            //This doesn't work?
            //Do I have to build a viewpoint?