Hi,
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 + "'");