Select to view content in your preferred language

Print Widget - Print with ArcGIS Server Map Scale Units change

1568
6
Jump to solution
07-12-2012 06:54 AM
TimHayes
Frequent Contributor
How do I change the map scale units shown when I use this to export to PDF or other format? I see the scale is set to miles, I need to make it feet.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
DasaPaddock
Esri Regular Contributor
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>

View solution in original post

0 Kudos
6 Replies
DasaPaddock
Esri Regular Contributor
You'll need to set PrintParameters.layoutOptions.scaleBarOptions.nonMetricUnit.

See:
http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/tasks/supportClasses/ScaleBarOption...
0 Kudos
TimHayes
Frequent Contributor
You'll need to set PrintParameters.layoutOptions.scaleBarOptions.nonMetricUnit.

See:
http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/tasks/supportClasses/ScaleBarOption...


Can I do this with a simple XML editor like ConText or WordPad? or do I need to recompile?
0 Kudos
DasaPaddock
Esri Regular Contributor
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>
0 Kudos
TimHayes
Frequent Contributor
What software do I need to compile?



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>
0 Kudos
DasaPaddock
Esri Regular Contributor
0 Kudos
JayHalligan
Occasional Contributor
Any Idea how to recompile the widget so that you can enter feet units instead of an absolute scale in the print widget?
0 Kudos