How to set the scalebar unit set to nautical miles?
Currently, nautical miles are not supported with the ScaleBar widget. One option would be to use the 2D distance measurement widget and set the units or unitOptions to nautical miles so you can draw a line of specific length for comparisons.