I am using ArcGIS Runtime & Toolkit 200.7. I have the following code in a QML file:
MapViewBackend {
id: mapViewBackendId
mapView: mapViewId
Component.onCompleted: scalebarId.mapView = mapViewId
}
MapView {
id: mapViewId
Scalebar {
id: scalebarId
anchors.bottom: parent.attributionTop
anchors.right: parent.left
anchors.bottomMargin: 10
anchors.rightMargin: 5
unitSystem: Scalebar.UnitSystem.Imperial
}
}The code compiles and displays a map with a scalebar, but the scalebar still displays units in metric. I have checked the value of the `unitSystem` attribute via print statements -- it is properly set to imperial, but the UI still only shows metric units. What do I need to change for this to work?