AnsweredAssumed Answered

How to set extent of the map as per feature definition

Question asked by satyanarayana_narmala on May 19, 2016
Latest reply on Feb 16, 2018 by csgeosol1



I have a state layer in which counties exists. i have definied the layer by which the layer only showing the counties existing in a particular state as below. but how can make this defined state to be as a map extent.


var featureLayer1 = new FeatureLayer("XYZ",{

          mode: FeatureLayer.MODE_ONDEMAND,

          outFields: ["*"],

        //minScale : 800000,

        //maxScale : 0,

          infoTemplate: template



        featureLayer1.setDefinitionExpression("sde.sde.TS_Const.dname = '" + distname + "'");