<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Force scale when printing in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/force-scale-when-printing/m-p/666934#M62281</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adrian!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for the response!&amp;nbsp; Are the options in your scale drop down, contingent upon the levels of detail or scales in your basemaps?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Sep 2014 12:04:23 GMT</pubDate>
    <dc:creator>RyanSellman</dc:creator>
    <dc:date>2014-09-15T12:04:23Z</dc:date>
    <item>
      <title>Force scale when printing</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/force-scale-when-printing/m-p/666931#M62278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know how to allow printing at user defined scales?&amp;nbsp; As it stands right now, I have a drop down list of scale options that match the levels of detail in my basemaps.&amp;nbsp; It works great, but its somewhat limiting.&amp;nbsp; I would like to have a text box where folks can type in a scale, then print.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume the only way to do this is to create my own JSON and use it with my printing service, but I have no idea how to do this and haven't seen an example of someone else successfully doing it.&amp;nbsp; Any ideas?&amp;nbsp; Maybe there is another way to accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help/insight is greatly appreciated!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 15:41:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/force-scale-when-printing/m-p/666931#M62278</guid>
      <dc:creator>RyanSellman</dc:creator>
      <dc:date>2014-09-12T15:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Force scale when printing</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/force-scale-when-printing/m-p/666932#M62279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found this bit of code while researching this topic and think that it may be a step in the right direction, but I am not sure.&amp;nbsp; It allows for manipulation of the ExportWebMap JSON, specific to the rotation of the map.&amp;nbsp; I haven't been able to do it successfully yet, but can I do something similar to this to edit the scale before the process is executed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the fiddle - &lt;A href="http://jsfiddle.net/jagravois/tg27f/" rel="nofollow" style="font-size: 14px; color: #358daa; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: rgba(248, 248, 248, 0.6);" title="http://jsfiddle.net/jagravois/tg27f/"&gt;Edit fiddle - JSFiddle&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Sep 2014 15:38:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/force-scale-when-printing/m-p/666932#M62279</guid>
      <dc:creator>RyanSellman</dc:creator>
      <dc:date>2014-09-13T15:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Force scale when printing</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/force-scale-when-printing/m-p/666933#M62280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've not had any problems here (that I recall) I have a drop down list for scale too, and my print function is below.&amp;nbsp; It reads in a few extra user stuff, like template, quality, notes (the varibles returned by the various dijit.byId and Dojo.byID).&amp;nbsp; But seems to work.&amp;nbsp; I'm sure I did some tweaking, but cannot remember what.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14107115295273455" jivemacro_uid="_14107115295273455" modifiedtitle="true"&gt;
&lt;P&gt;function DoPrint() {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphicsClear();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var legendLayer = new esri.tasks.LegendLayer();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; legendLayer.layerId = "mainmap";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SelectedTemplate = dijit.byId('templateselect').attr('value');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vPrintTitle = dojo.byId("PrintTitle").value;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vPrintComments = dojo.byId("PrintComments").value;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vQuality = dijit.byId('quality').attr('value');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var printTemplate = new esri.tasks.PrintTemplate();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (SelectedTemplate == "maponly") {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printTemplate.format = "JPG";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printTemplate.format = "PDF";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printTemplate.layout = SelectedTemplate;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printTemplate.exportOptions = {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width: 2125.98,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height: 2362.2,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dpi: vQuality&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // console.debug(printTemplate);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var layoutOptions = {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "copyrightText": currentcopyright,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; authorText: vPrintComments,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; titleText: vPrintTitle,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scalebarUnit: 'Miles',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; legendLayers: [legendLayer]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printTemplate.layoutOptions = layoutOptions;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var printParams = new esri.tasks.PrintParameters();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printParams.map = map;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printParams.outSpatialReference = map.spatialReference;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printParams.template = printTemplate;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var printURL = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://zzzzzzzzzzzzzzzzzzzzzzzzz/rest/services/PrintService2/GPServer/Export%20Web%20Map" rel="nofollow" target="_blank"&gt;http://zzzzzzzzzzzzzzzzzzzzzzzzz/rest/services/PrintService2/GPServer/Export%20Web%20Map&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var printTask = new esri.tasks.PrintTask(printURL);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printTask.execute(printParams, function (result) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.open(result.url + "?timestamp=" + (new Date().getTime()), '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=620,height=600');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printbox.hide();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Sep 2014 16:20:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/force-scale-when-printing/m-p/666933#M62280</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2014-09-14T16:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Force scale when printing</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/force-scale-when-printing/m-p/666934#M62281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adrian!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for the response!&amp;nbsp; Are the options in your scale drop down, contingent upon the levels of detail or scales in your basemaps?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 12:04:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/force-scale-when-printing/m-p/666934#M62281</guid>
      <dc:creator>RyanSellman</dc:creator>
      <dc:date>2014-09-15T12:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Force scale when printing</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/force-scale-when-printing/m-p/666935#M62282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, as I don't use a tiled base map so I have no set zoom scales (well, actually, my base map is a dynamic service, but that dynamic service has, for most scales, a set of tiles, only lower than 1:3,000 does it then hit the fine detailed vector maps)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, my pull down just has a list of common scales the users want, plus allows type in of values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 12:07:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/force-scale-when-printing/m-p/666935#M62282</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2014-09-15T12:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Force scale when printing</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/force-scale-when-printing/m-p/666936#M62283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see.&amp;nbsp; Unfortunately I have to use a few tiled services as basemap options in the app, which limits me to using the scales defined in those basemaps.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 12:30:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/force-scale-when-printing/m-p/666936#M62283</guid>
      <dc:creator>RyanSellman</dc:creator>
      <dc:date>2014-09-15T12:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Force scale when printing</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/force-scale-when-printing/m-p/666937#M62284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;mmm - I think the issue will be the fact that the ArcMap side of this may try to get the extent in, rather than prioritize the scale.&amp;nbsp; beyond me now I'm afraid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 12:33:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/force-scale-when-printing/m-p/666937#M62284</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2014-09-15T12:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Force scale when printing</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/force-scale-when-printing/m-p/666938#M62285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem!&amp;nbsp; I appreciate your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 12:55:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/force-scale-when-printing/m-p/666938#M62285</guid>
      <dc:creator>RyanSellman</dc:creator>
      <dc:date>2014-09-15T12:55:20Z</dc:date>
    </item>
  </channel>
</rss>

