Enhanced Search Widget Customizing Zoom to features

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

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 Esteemed Contributor

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 Esteemed Contributor

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

MartinOwens1
Occasional Contributor

Thanks Robert!

0 Kudos