AnsweredAssumed Answered

map.setExtent not working

Question asked by GibbyAR on Jan 13, 2015
Latest reply on Jan 13, 2015 by GibbyAR

Give the following code which is property returning a results set from a query. The map.setExtent is not firing. Graphics are added but the change in map extent does not work. Any ides?

 

Thanks in advance

 

RGibson

 

function showQueryResults(results) {

   var features = results.features;

   dojo.forEach(features, function(feature) {

    feature.setSymbol(new SimpleMarkerSymbol);

    map.graphics.add(feature);

   });

   map.setExtent(graphicsUtils.graphicsExtent(map.graphics.graphics), true);

}

Outcomes