Chaning Screening Widget scale after buffer zoom?

209
1
02-19-2018 01:48 AM
BrettKruger
New Contributor II

Hi Guys

I am trying to use the screening widget out the box, but wanting to change the scale it zooms to after the user has searched for the feature. I got a buffer of around 5km around the POI, but the scale after zoomed stays at 1:50000.

I would like this scale to rather change to 1:10000 after zoomed but cant seem to find the point in the code of the widget on where to change this?

Any help/guidance would be appreciated.

Thanks in advance

Brett

1 Reply
RobertScheitlin__GISP
MVP Esteemed Contributor

Brett,


  The screening widget uses the JS APIs Search dijit to do the searching and ultimately the zooming. You will not find zooming code as the Search dijit handles that internally. You can add an event listener to the Search dijit for the search complete and then do your own zoom logic. I have several posts and code snippets for this in the JS API space.

0 Kudos