<?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 Restricting Graphic Creation to a Polygon Geometry in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/restricting-graphic-creation-to-a-polygon-geometry/m-p/87656#M2138</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a map with 3 layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The base layer displays imagery of an area of a sea port.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The second layer displays a previously created Polygon (container polygon).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The third layer uses an Editor to enable the user to draw another polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I restrict the new Polygon so that it is completely contained by the 'container' polygon on the second layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please note that I am already using RelationAsync as each Vertex is dropped to determine if the MapPoint is within or outside the container. I use UndoVertex if the point is not inside the 'container' polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This does not work very well and a user is able to draw rings across the border of the container polygon in certain situations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a better way to limit the editing domain on a layer to a certain geometry or area?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Barry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jul 2013 07:47:53 GMT</pubDate>
    <dc:creator>BarryRussell</dc:creator>
    <dc:date>2013-07-25T07:47:53Z</dc:date>
    <item>
      <title>Restricting Graphic Creation to a Polygon Geometry</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/restricting-graphic-creation-to-a-polygon-geometry/m-p/87656#M2138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a map with 3 layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The base layer displays imagery of an area of a sea port.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The second layer displays a previously created Polygon (container polygon).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The third layer uses an Editor to enable the user to draw another polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I restrict the new Polygon so that it is completely contained by the 'container' polygon on the second layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please note that I am already using RelationAsync as each Vertex is dropped to determine if the MapPoint is within or outside the container. I use UndoVertex if the point is not inside the 'container' polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This does not work very well and a user is able to draw rings across the border of the container polygon in certain situations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a better way to limit the editing domain on a layer to a certain geometry or area?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Barry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jul 2013 07:47:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/restricting-graphic-creation-to-a-polygon-geometry/m-p/87656#M2138</guid>
      <dc:creator>BarryRussell</dc:creator>
      <dc:date>2013-07-25T07:47:53Z</dc:date>
    </item>
  </channel>
</rss>

