<?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: map object not resized using print.css in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-object-not-resized-using-print-css/m-p/31608#M2558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;..still waiting for a reply on this one...I can't believe that we would need to get ArcServer 10 just to do this? someone has an idea , Kelly, Derek...?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Aug 2013 19:48:45 GMT</pubDate>
    <dc:creator>deleted-user-ugCMpXci8bn5</dc:creator>
    <dc:date>2013-08-28T19:48:45Z</dc:date>
    <item>
      <title>map object not resized using print.css</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-object-not-resized-using-print-css/m-p/31607#M2557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an app where the user chooses parameters from a few dropdown menus, and a print-friendly map page opens in a new tab.&amp;nbsp; From this page, the user can click a 'print' button, which uses window.print() to open the browser's print dialog.&amp;nbsp; I have a print.css page, which is working well with my 'normal' divs, text and images.&amp;nbsp; I have this tag in my HTML:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;link rel="stylesheet" href="print.css" type="text/css" media="print" /&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is that I cannot seem to reset the size of the Dojo map object.&amp;nbsp; The map in my printed page (or PDF, if I choose CutePDF) is the same size as whatever the size was in the print-friendly page.&amp;nbsp; I would like my print.css to hard define the printed version / PDF as an exact height and width, regardless of the window size in the print-friendly page.&amp;nbsp; I cannot define the size of page to be printed in the print-friendly page, b/c for one, my client would like to pan and zoom the map after the print-friendly page is generated.&amp;nbsp; I have no problem setting the size of the other elements in my print.css rules (text box, hard coded legend with images)...but any rules I try to set for the map itself in my print.css page are ignored.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried using 'exportMapImage', thinking that maybe I could make an image of the map and its contents, but this loses the basemap which I need, and also I do not want the user to open yet another page or tab.&amp;nbsp; (I am having the same problem with my scalebar, but I this isn't so important for this project).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My goal is to create a PDF or printed page that is the same size no matter what the screen size or current window size., and I have it working except for the map itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas? I hope I explained my problem clearly. Thanks , J&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 18:47:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-object-not-resized-using-print-css/m-p/31607#M2557</guid>
      <dc:creator>deleted-user-ugCMpXci8bn5</dc:creator>
      <dc:date>2013-07-30T18:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: map object not resized using print.css</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-object-not-resized-using-print-css/m-p/31608#M2558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;..still waiting for a reply on this one...I can't believe that we would need to get ArcServer 10 just to do this? someone has an idea , Kelly, Derek...?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Aug 2013 19:48:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/map-object-not-resized-using-print-css/m-p/31608#M2558</guid>
      <dc:creator>deleted-user-ugCMpXci8bn5</dc:creator>
      <dc:date>2013-08-28T19:48:45Z</dc:date>
    </item>
  </channel>
</rss>

