AnsweredAssumed Answered

Setting zoom scale for Infowindow result

Question asked by gschwitz on Apr 6, 2015
Latest reply on Apr 20, 2016 by rscheitlin

I'm currently using the SimpleViewer template and want to customize the zoom scale for the resulting polygon that is returned in the search.  It appears that it has a default zoom scale (1000 in the API reference) set within the Search widget, but when I try and add the zoomScale property with my desired scale, it still uses the default setting.

 

I am thinking that this can be set somewhere within the graphics layer that is produced by the returned result, within the feature layer or within the infoWindow result?  I'm not sure what is the best way to implement this.

 

Here is the snippet for the search widget and its properties when it is instantiated:

 

var options = {

    map: this.map,

    addLayersFromMap: true,

    enableInfoWindow: true,

    minCharacters: 3,

    zoomScale: 4514                 

 

};

 

var searchLayers = false;

var search = new Search(options, domConstruct.create("div"));

 

Any help is appreciated.  Thanks.

 

Geoff

Outcomes