Tutorial - Map Scale

Create a map. We increase the maximum amount you can zoom.

Create a UI layer to hold the scale widget.

Step 1
Active
Inactive

Add a basic scale in the upper-left corner.

Since the default map uses a Mercator projection, if you zoom very far out and pan, you may notice the scale changing length. The scale is calculated based on its position on the map within the current display.

Step 2
Active
Inactive

The scale can use U.S. Statute units instead of Système international.

Step 2-B
Active
Inactive

Or, you can define a new set of units, such as nautical miles. You can also change the orientation of the scale.

Step 2-C
Active
Inactive

With appropriate placement, you can have two scales that appear as a combined widget.

Step 2-D
Active
Inactive