Select to view content in your preferred language

map.setExtent not working

3151
1
01-13-2015 01:12 PM
by Anonymous User
Not applicable

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);

}

0 Kudos
1 Reply
by Anonymous User
Not applicable

Nvm.....found that I had two delcarations of graphicsUtils.

0 Kudos