<?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: Movable scaled print area graphic in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/movable-scaled-print-area-graphic/m-p/575190#M12965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That seems to do the trick.&amp;nbsp; I am still working on getting it scaled etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure if using a graphic is possible or not, I could not get it to work.&amp;nbsp; I found it easier to add an image than a graphic.&amp;nbsp; I did this by creating an black rectangle image in MS Paint that fit would my approximate print area.&amp;nbsp; I added a button to my app that would toggle showing then hiding the print area image.&amp;nbsp; Then I used addElement or removeElement to show or hide the image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;map.staticLayer.addElement(image)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Sep 2010 15:48:05 GMT</pubDate>
    <dc:creator>DanJensen</dc:creator>
    <dc:date>2010-09-07T15:48:05Z</dc:date>
    <item>
      <title>Movable scaled print area graphic</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/movable-scaled-print-area-graphic/m-p/575188#M12963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the functionality I would like to implement:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When the user click the a button a scaled graphic appears in the center of the map above other graphics. The user could then pan and zoom in and out to make sure the entire area of interest is highlighted by the static graphic. When the user has it perfect, they click another button to send the highlighted area and associated print layout to the printer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:&amp;quot;sienna&amp;quot;;"&gt;&lt;STRONG&gt;How can you make a graphic static so that pans and zooms change the area covered by the graphic?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively, can you move one graphic in the graphics layer so as to frame the area of interest?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The API Reference seems to hint this is possible:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; geometry property (of the Graphic Class)&amp;nbsp; &lt;BR /&gt;geometry:Geometry&amp;nbsp; &lt;BR /&gt;The geometry that defines the graphic. If the geometry class is an IEventDispatcher, the Graphic will refresh itself when Event.CHANGE events on the geometry are thrown.&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I may be misinterpreting this, but wondered if this meant that geometry could somehow be bound to mouse moves and thus move the graphic with changes to the geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How would you go about this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Dan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 22:11:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/movable-scaled-print-area-graphic/m-p/575188#M12963</guid>
      <dc:creator>DanJensen</dc:creator>
      <dc:date>2010-09-03T22:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Movable scaled print area graphic</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/movable-scaled-print-area-graphic/m-p/575189#M12964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Sounds like you want to look at the map.staticLayer&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 22:41:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/movable-scaled-print-area-graphic/m-p/575189#M12964</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2010-09-03T22:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Movable scaled print area graphic</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/movable-scaled-print-area-graphic/m-p/575190#M12965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That seems to do the trick.&amp;nbsp; I am still working on getting it scaled etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure if using a graphic is possible or not, I could not get it to work.&amp;nbsp; I found it easier to add an image than a graphic.&amp;nbsp; I did this by creating an black rectangle image in MS Paint that fit would my approximate print area.&amp;nbsp; I added a button to my app that would toggle showing then hiding the print area image.&amp;nbsp; Then I used addElement or removeElement to show or hide the image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;map.staticLayer.addElement(image)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Sep 2010 15:48:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/movable-scaled-print-area-graphic/m-p/575190#M12965</guid>
      <dc:creator>DanJensen</dc:creator>
      <dc:date>2010-09-07T15:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Movable scaled print area graphic</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/movable-scaled-print-area-graphic/m-p/575191#M12966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Here is what I did to use a graphic (Spark Primitive Graphic).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;fx:Declarations&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;s:Graphic id="mapOverlay"&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;s:Group&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;s:Path id="mapOverlayPath" &amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;s:fill&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mx:SolidColor id="ovlayColor" color="0x000000" alpha="0.8"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/s:fill&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/s:Path&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/s:Group&amp;gt;
&amp;nbsp; &amp;lt;/s:Graphic&amp;gt;
&amp;lt;/fx:Declarations&amp;gt;

//This code called from some function
mapOverlayPath.data = "M 0 0 v " + map.height + " h " + map.width + " v -" + map.height + " v -" + map.width + " M 100 100";
&amp;nbsp;&amp;nbsp;&amp;nbsp; mapOverlayPath.data += " v " + (map.height - 200) + " h " + (map.width - 200) + " v -" + (map.height - 200) + " Z";
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.staticLayer.addElement(mapOverlay);
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:46:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/movable-scaled-print-area-graphic/m-p/575191#M12966</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-12T00:46:08Z</dc:date>
    </item>
  </channel>
</rss>

