AnsweredAssumed Answered

How to get extent out of

Question asked by dexconor on Apr 28, 2014
Latest reply on Apr 29, 2014 by dexconor
function getLocRes(results) {  map.graphics.clear();  var geom;  var symbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([80, 0, 0]), 2), new dojo.Color([80, 0, 0, 0.5]));  var res = results.features;  for (var i = 0;i < res.length; i++) {   geom += results.features[i].geometry;   var graphic = results.features[i];   //var graphic = new Graphic(reGeo,symbol);   graphic.setSymbol(symbol);   map.graphics.add(graphic);  }  var extent = geom.getExtent();  map.setExtent(extent, true); }


query.where = Abbrev = 'abc' OR Abbrev = 'def' OR Abbrev = 'ghi'
selected features are polygons
did some stupid thinking like
 geom += results.features[i].geometry; 

but didnt work

Can you help me with this?

Thank you for your time

Outcomes