<esri:PrintParameters id="printParameters" format="{formatsDDL.selectedItem}" layoutTemplate="{layoutTemplatesDDL.selectedItem}" map="{hostBaseWidget.map}" preserveScale="{scaleCheckbox.selected}"> <esri:layoutOptions> <esri:LayoutOptions id="layoutOptions"> <esri:scaleBarOptions> <esri:ScaleBarOptions nonMetricUnit="esriFeet"/> </esri:scaleBarOptions> </esri:LayoutOptions> </esri:layoutOptions> </esri:PrintParameters>
You would need to recompile the PrintWidget with this change to the PrintParameters inside ExportWebMapForm.mxml: <esri:PrintParameters id="printParameters" format="{formatsDDL.selectedItem}" layoutTemplate="{layoutTemplatesDDL.selectedItem}" map="{hostBaseWidget.map}" preserveScale="{scaleCheckbox.selected}"> <esri:layoutOptions> <esri:LayoutOptions id="layoutOptions"> <esri:scaleBarOptions> <esri:ScaleBarOptions nonMetricUnit="esriFeet"/> </esri:scaleBarOptions> </esri:LayoutOptions> </esri:layoutOptions> </esri:PrintParameters>
You'll need to set PrintParameters.layoutOptions.scaleBarOptions.nonMetricUnit.See:http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/tasks/supportClasses/ScaleBarOptions.html
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.