<?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 Rectangle drawing rotated along with the map in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rectangle-drawing-rotated-along-with-the-map/m-p/682565#M17547</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We ran into this issue where when we rotate the map for example 45 degrees and draw a rectangle, this rectangular drawing also get rotated.&amp;nbsp; This is not the behavior that we have in mind since the drawing is supposed to zoom into the area of the drawn rectangle.&amp;nbsp; Is there a way that we could reset the rotation of the drawing? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Help appreciated,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bernard N&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Nov 2010 05:49:03 GMT</pubDate>
    <dc:creator>bernardnguyen</dc:creator>
    <dc:date>2010-11-25T05:49:03Z</dc:date>
    <item>
      <title>Rectangle drawing rotated along with the map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rectangle-drawing-rotated-along-with-the-map/m-p/682565#M17547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We ran into this issue where when we rotate the map for example 45 degrees and draw a rectangle, this rectangular drawing also get rotated.&amp;nbsp; This is not the behavior that we have in mind since the drawing is supposed to zoom into the area of the drawn rectangle.&amp;nbsp; Is there a way that we could reset the rotation of the drawing? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Help appreciated,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bernard N&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Nov 2010 05:49:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rectangle-drawing-rotated-along-with-the-map/m-p/682565#M17547</guid>
      <dc:creator>bernardnguyen</dc:creator>
      <dc:date>2010-11-25T05:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Rectangle drawing rotated along with the map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rectangle-drawing-rotated-along-with-the-map/m-p/682566#M17548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you rotate the map, you rotate at the same time all the layers inside the map including the graphicslayer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is 'By Design' else the result would be very stange in most cases.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For your case, I think that the best way is you to calculate the geometry (polyline or polygon) of your rectangle in order this rectangle looks not rotated for the the user (would nee a few sine and cosine:)).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Nov 2010 18:24:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rectangle-drawing-rotated-along-with-the-map/m-p/682566#M17548</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2010-11-25T18:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Rectangle drawing rotated along with the map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rectangle-drawing-rotated-along-with-the-map/m-p/682567#M17549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't even think its possible anymore.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since, the drawing is a built-in feature and to enable it you simply set IsEnabled = true to start drawing.&amp;nbsp; As soon as you click on a point and start dragging the rectangle is being drawn on the screen so I doubt that I can override this part of the rendering.&amp;nbsp; I checked the layer's properties but couldnt find anything useful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;private void InitApp()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MyDrawObject = new Draw(myMap)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;nbsp;&amp;nbsp;&amp;nbsp; FillSymbol = DefaultFillSymbol,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;nbsp;&amp;nbsp;&amp;nbsp; DrawMode = DrawMode.Rectangle&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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; };&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&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; MyDrawObject.DrawComplete += myDrawObject_DrawComplete;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;private void radBtnZoomIn_Click(object sender, RoutedEventArgs e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyDrawObject.IsEnabled = true;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _toolMode = "zoomin";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bernard&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Nov 2010 19:42:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rectangle-drawing-rotated-along-with-the-map/m-p/682567#M17549</guid>
      <dc:creator>bernardnguyen</dc:creator>
      <dc:date>2010-11-28T19:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Rectangle drawing rotated along with the map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rectangle-drawing-rotated-along-with-the-map/m-p/682568#M17550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are right. I don't think it's possible with the built-in draw object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You could write your own draw which would draw a rectangle over the map, but I guess it's not that simple.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 08:22:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rectangle-drawing-rotated-along-with-the-map/m-p/682568#M17550</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2010-11-29T08:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Rectangle drawing rotated along with the map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rectangle-drawing-rotated-along-with-the-map/m-p/682569#M17551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to clarify the issue here...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The rectangle in question is not a cartographic element or markup but rather the visual indicator of the rectangular selection and marquee zoom tools.&amp;nbsp; Are these being rendered (during mouse-down events only as they are immediately deleted on mouse-up) in the graphics layer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 18:34:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rectangle-drawing-rotated-along-with-the-map/m-p/682569#M17551</guid>
      <dc:creator>jmmGeoToo</dc:creator>
      <dc:date>2010-11-29T18:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Rectangle drawing rotated along with the map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rectangle-drawing-rotated-along-with-the-map/m-p/682570#M17552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From the previous posts, I believe the rectangle is a graphic with envelope geometry, created by Draw object and added to a GraphicsLayer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Because if it were the rectangle used for zoom to selection, it would have been removed from the map before the zoom.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 19:16:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/rectangle-drawing-rotated-along-with-the-map/m-p/682570#M17552</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-11-29T19:16:32Z</dc:date>
    </item>
  </channel>
</rss>

