I developed a simple in-panel widget that enable the user to zoom to desired scale (it's a NumberTextBox dijit), but now I want to convert it to off-panel widget. The question is: how can I do it? I searched an example of off-panel widget, but I was not able to find it. Can someone give me a link or point me in the right direction?
Thanks,
Marco
Solved! Go to Solution.
Marco,
There are several otb off panel widgets that you can use as examples in the WAB stemApp. Look at the ScaleBar widget for example as your starting point.
Marco,
There are several otb off panel widgets that you can use as examples in the WAB stemApp. Look at the ScaleBar widget for example as your starting point.
Thanks, Robert.
I managed to do it. Almost. I created a TextBox (I wasn't able to create a NumberTextBox: I don't know why), but when I use the numeric pad to input a scale, the map pan in the direction of the arrows. Is there a way to prevent this behaviour?
Thanks again,
Marco
Marco,
Sure just use
this.map.disableKeyboardNavigation();
Wonderful!
Thanks again!