sohnem2

force featureLayer selectFeatures on crome and firefox

Discussion created by sohnem2 on Dec 4, 2013
Doing:

var query = new esri.tasks.Query();
            query.outFields = outfieldsList;
            query.where = null;
            if (whereClause) query.where = whereClause;
            if (geometry) {
                query.returnGeometry = true;
                query.geometry = geometry;
                query.spatialRelationship = esri.tasks.Query.SPATIAL_REL_INTERSECTS;
                query.outSpatialReference = featureLayer.spatialReference;
            }

featureLayer.selectFeatures(query, esri.layers.FeatureLayer.SELECTION_NEW, function (features) {
alert(1);
});

On IE selectFeatures get called and I see alert(1) even if the whereClause has not changed.
On chrome and firefox, if the whereClause has not change, alert(1) does not get called, only if it is changed.
Is there an easy way to force it?

Outcomes