<?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: How to determine whether two features are intersecting? in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/how-to-determine-whether-two-features-are/m-p/628579#M3239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks guys.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I managed to get something working. Here's my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
geometryTask.LabelPointsCompleted += delegate(object snd, GraphicsEventArgs le)
{
 graphicsLayer.Graphics.Clear();
 
 for (int i = 0; i &amp;lt; le.Results.Count; ++i)
 {
&amp;nbsp; var graphic = le.Results&lt;I&gt;;
&amp;nbsp; var feature = features&lt;I&gt;;
&amp;nbsp; if (feature.Geometry != null &amp;amp;&amp;amp; feature.Attributes["PROP_ID"] != null &amp;amp;&amp;amp; Convert.ToInt32(feature.Attributes["PROP_ID"]) &amp;gt; 0)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; var extent = feature.Geometry.Extent;
&amp;nbsp;&amp;nbsp; var point1 = MyMap.MapToScreen(new MapPoint(extent.XMin, extent.YMin, extent.ZMin, extent.MMin, extent.SpatialReference));
&amp;nbsp;&amp;nbsp; var point2 = MyMap.MapToScreen(new MapPoint(extent.XMax, extent.YMax, extent.ZMax, extent.MMax, extent.SpatialReference));

&amp;nbsp;&amp;nbsp; if (Point.Subtract(point1, point2).Length &amp;gt; 110)
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var symbol = new TextSymbol()
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text = feature.Attributes["PROP_ID"].ToString(),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ControlTemplate = LayoutRoot.Resources["LabelTemplate"] as ControlTemplate,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FontSize = 12,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OffsetX = 50,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OffsetY = 6
&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.Symbol = symbol;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var mapPoint = graphic.Geometry as MapPoint;
&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.Attributes.Add("X", mapPoint.X);
&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.Attributes.Add("Y", mapPoint.Y);
&amp;nbsp;&amp;nbsp;&amp;nbsp; graphicsLayer.Graphics.Add(graphic);
&amp;nbsp;&amp;nbsp; }
&amp;nbsp; }
 }
};
&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This actually makes the labels get hidden when they're too big for the polygon. I'm checking to see if the polygon's extent's diagonal's length is enough to house the label. But this works best (or only) on certain polygons, and doesn't work for others, for obvious reasons.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any pointers on getting it to work with any or most polygons would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: Changing the condition to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;if ((point2.X - point1.X) &amp;gt; 110)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;seems to approximate it better.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 02:46:01 GMT</pubDate>
    <dc:creator>GeorgeFaraj</dc:creator>
    <dc:date>2021-12-12T02:46:01Z</dc:date>
    <item>
      <title>How to determine whether two features are intersecting?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/how-to-determine-whether-two-features-are/m-p/628568#M3228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How can I test whether the symbol of one feature is intersecting the geometry of another feature? For example, I have a feature whose geometry is a MapPoint, but has a TextSymbol set. I want to know if the text is intersecting/overlapping another feature whose geometry is a Polygon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this doable?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 13:22:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/how-to-determine-whether-two-features-are/m-p/628568#M3228</guid>
      <dc:creator>GeorgeFaraj</dc:creator>
      <dc:date>2013-01-15T13:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine whether two features are intersecting?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/how-to-determine-whether-two-features-are/m-p/628569#M3229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;At the very least, can someone tell me how to center a TextSymbol inside a polygon feature? I'm using the LabelPoints geometry task to get the position of the text as a MapPoint, but then the text isn't centered.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 14:43:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/how-to-determine-whether-two-features-are/m-p/628569#M3229</guid>
      <dc:creator>GeorgeFaraj</dc:creator>
      <dc:date>2013-01-17T14:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine whether two features are intersecting?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/how-to-determine-whether-two-features-are/m-p/628570#M3230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That sounds like Maplex for Runtime! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you labelling multipart features? This might have put the label point in an undesirable position, but my understanding is that LabelPoint should be within the polygon. You might be able to change the offset with a control template in your XAML.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 20:21:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/how-to-determine-whether-two-features-are/m-p/628570#M3230</guid>
      <dc:creator>MatthewBrown1</dc:creator>
      <dc:date>2013-01-17T20:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine whether two features are intersecting?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/how-to-determine-whether-two-features-are/m-p/628571#M3231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;LabelPoints returns the correct points, but then the text's top-left (or bottom-left) corner is placed at that point. I want to center the text. Not sure how to offset it, since the text can change. Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jan 2013 20:39:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/how-to-determine-whether-two-features-are/m-p/628571#M3231</guid>
      <dc:creator>GeorgeFaraj</dc:creator>
      <dc:date>2013-01-17T20:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine whether two features are intersecting?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/how-to-determine-whether-two-features-are/m-p/628572#M3232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;LabelPoints returns the correct points, but then the text's top-left (or bottom-left) corner is placed at that point. I want to center the text. Not sure how to offset it, since the text can change. Any ideas?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can retemplate the symbol and use either OffsetX/OffsetY or the margin to translate the text.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you can know the max width of your text (100 here), this should work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;esri:TextSymbol FontSize="14" OffsetX="50" OffsetY="7" Text="{Binding Attributes[myAttribute]}"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;esri:TextSymbol.ControlTemplate&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ControlTemplate&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;lt;TextBlock Width="100" FontFamily="{Binding Symbol.FontFamily}"
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FontSize="{Binding Symbol.FontSize}"
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Foreground="{Binding Symbol.Foreground}"
&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text="{Binding Symbol.Text}" TextAlignment="Center" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ControlTemplate&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/esri:TextSymbol.ControlTemplate&amp;gt;
&amp;lt;/esri:TextSymbol&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:45:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/how-to-determine-whether-two-features-are/m-p/628572#M3232</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2021-12-12T02:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine whether two features are intersecting?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/how-to-determine-whether-two-features-are/m-p/628573#M3233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried that and it worked. I think we can manage with that. Thank you. Now, is there a way to have the symbol hide if it doesn't fit inside the polygon? Look how ugly the attached screenshot looks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 15:59:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/how-to-determine-whether-two-features-are/m-p/628573#M3233</guid>
      <dc:creator>GeorgeFaraj</dc:creator>
      <dc:date>2013-01-18T15:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine whether two features are intersecting?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/how-to-determine-whether-two-features-are/m-p/628574#M3234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The easier way is to set a MaximumResolution to your graphics layer that contains your text symbols so your labels won't be visible when the user zooms out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 17:36:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/how-to-determine-whether-two-features-are/m-p/628574#M3234</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2013-01-18T17:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine whether two features are intersecting?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/how-to-determine-whether-two-features-are/m-p/628575#M3235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yeah I tried that but then there are different-sized features that should have their labels visible at different resolutions. Any idea about that?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 17:48:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/how-to-determine-whether-two-features-are/m-p/628575#M3235</guid>
      <dc:creator>GeorgeFaraj</dc:creator>
      <dc:date>2013-01-18T17:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine whether two features are intersecting?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/how-to-determine-whether-two-features-are/m-p/628576#M3236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yeah I tried that but then there are different-sized features that should have their labels visible at different resolutions. Any idea about that? &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At this time, my only idea is to create several graphicslayers, one by range of feature sizes and to set the MaximumResolution accordingly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess, you'd rather to get a labelling engine at client side working label by label but unfortunately, that doesn't exist yet.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 11:05:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/how-to-determine-whether-two-features-are/m-p/628576#M3236</guid>
      <dc:creator>DominiqueBroux</dc:creator>
      <dc:date>2013-01-21T11:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine whether two features are intersecting?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/how-to-determine-whether-two-features-are/m-p/628577#M3237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I guess, you'd rather to get a labelling engine at client side working label by label but unfortunately, that doesn't exist yet.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Exactly. Mike mentioned that there were talks about adding advanced labeling in next versions of the Runtime. Is there an estimated time frame for that by any chance?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 12:24:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/how-to-determine-whether-two-features-are/m-p/628577#M3237</guid>
      <dc:creator>GeorgeFaraj</dc:creator>
      <dc:date>2013-01-21T12:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine whether two features are intersecting?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/how-to-determine-whether-two-features-are/m-p/628578#M3238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Exactly. Mike mentioned that there were talks about adding advanced labeling in next versions of the Runtime. Is there an estimated time frame for that by any chance?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately there is no timescale yet, but I wanted to let you know that we're aware that client-side labelling control is lacking from the API and that we are working to address this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 14:21:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/how-to-determine-whether-two-features-are/m-p/628578#M3238</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2013-01-21T14:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine whether two features are intersecting?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/how-to-determine-whether-two-features-are/m-p/628579#M3239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks guys.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I managed to get something working. Here's my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
geometryTask.LabelPointsCompleted += delegate(object snd, GraphicsEventArgs le)
{
 graphicsLayer.Graphics.Clear();
 
 for (int i = 0; i &amp;lt; le.Results.Count; ++i)
 {
&amp;nbsp; var graphic = le.Results&lt;I&gt;;
&amp;nbsp; var feature = features&lt;I&gt;;
&amp;nbsp; if (feature.Geometry != null &amp;amp;&amp;amp; feature.Attributes["PROP_ID"] != null &amp;amp;&amp;amp; Convert.ToInt32(feature.Attributes["PROP_ID"]) &amp;gt; 0)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; var extent = feature.Geometry.Extent;
&amp;nbsp;&amp;nbsp; var point1 = MyMap.MapToScreen(new MapPoint(extent.XMin, extent.YMin, extent.ZMin, extent.MMin, extent.SpatialReference));
&amp;nbsp;&amp;nbsp; var point2 = MyMap.MapToScreen(new MapPoint(extent.XMax, extent.YMax, extent.ZMax, extent.MMax, extent.SpatialReference));

&amp;nbsp;&amp;nbsp; if (Point.Subtract(point1, point2).Length &amp;gt; 110)
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var symbol = new TextSymbol()
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text = feature.Attributes["PROP_ID"].ToString(),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ControlTemplate = LayoutRoot.Resources["LabelTemplate"] as ControlTemplate,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FontSize = 12,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OffsetX = 50,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OffsetY = 6
&amp;nbsp;&amp;nbsp;&amp;nbsp; };
&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.Symbol = symbol;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var mapPoint = graphic.Geometry as MapPoint;
&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.Attributes.Add("X", mapPoint.X);
&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.Attributes.Add("Y", mapPoint.Y);
&amp;nbsp;&amp;nbsp;&amp;nbsp; graphicsLayer.Graphics.Add(graphic);
&amp;nbsp;&amp;nbsp; }
&amp;nbsp; }
 }
};
&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This actually makes the labels get hidden when they're too big for the polygon. I'm checking to see if the polygon's extent's diagonal's length is enough to house the label. But this works best (or only) on certain polygons, and doesn't work for others, for obvious reasons.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any pointers on getting it to work with any or most polygons would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: Changing the condition to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;if ((point2.X - point1.X) &amp;gt; 110)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;seems to approximate it better.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:46:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/how-to-determine-whether-two-features-are/m-p/628579#M3239</guid>
      <dc:creator>GeorgeFaraj</dc:creator>
      <dc:date>2021-12-12T02:46:01Z</dc:date>
    </item>
  </channel>
</rss>

