Enhanced Search Widget Customizing Zoom to features

462
2
Jump to solution
01-12-2018 12:51 PM
MartinOwens1
Occasional Contributor II

Is there a way not zoom to the extent of the results if more than 1 feature is found?

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Martin,

   Sure you just need to bail out of the zoomAll function if the results are greater than one.

      zoomall: function () {
        if(this.currentLayerAdded.graphics.length > 1){
          return;
        }
....

View solution in original post

2 Replies
RobertScheitlin__GISP
MVP Emeritus

Martin,

   Sure you just need to bail out of the zoomAll function if the results are greater than one.

      zoomall: function () {
        if(this.currentLayerAdded.graphics.length > 1){
          return;
        }
....
MartinOwens1
Occasional Contributor II

Thanks Robert!

0 Kudos