layerDefinitions problem

Discussion created by betsyjsg on Apr 25, 2012
Latest reply on Apr 26, 2012 by betsyjsg
Does anyone know why this doesn't work:

var imageParameters = new esri.layers.ImageParameters();
var layerDefs = [];
layerDefs[1] = "vdate='2012/04/26-00Z'";
imageParameters.layerDefinitions = layerDefs;
imageParameters.layerIds = [1];
imageParameters.layerOption = esri.layers.ImageParameters.LAYER_OPTION_SHOW;
imageParameters.transparent = true;
lyr = new esri.layers.ArcGISDynamicMapServiceLayer("", {"imageParameters":imageParameters,"opacity":0.90});

If I go to the REST service for this map and to the query page of this particular layer, I can enter the vdate string of 2012/04/26-00Z and get a result.  But if I try to use the layerDefinitions option, I get no results.