AnsweredAssumed Answered

Arcgis ignores extent definition

Question asked by davidzornosa on Mar 20, 2019
Latest reply on Mar 21, 2019 by kenbuja

Hi, In arcgis js 3.25 I have a map that displays only one layer.

Said layer is known to be in srid 4686

 

var bounds = new Extent({
            "xmin" : -83.00,
            "ymin" : -4.60,
            "xmax" : -66.00,
            "ymax" : 13.0,
            "spatialReference" : {
                "wkid" : 4686
            }
});

 

var MAP = new Map("divCont", {
            extent: bounds,
            slider : false,
            logo : false,
            showAttribution : false
});   

 

var fl = new FeatureLayer(LAYER_URL+ "/0", {
    id: "myFl",
    mode: FeatureLayer.MODE_SNAPSHOT,
    outFields:["*"]
});        

 

fl.setDefinitionExpression("attribute=2");
MAP.addLayer(fl);

 

However, no matter what extent i set, Arcgis always ignores it.

Any ideas?

thank you

Outcomes