<?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: Find closest point? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/find-closest-point/m-p/459221#M11845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Instead of using a point for querying, create a small envelope around the point. Ie. this create a box 2x2 pixels around the click-point:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; new Envelope(p.X - map.Resolution, p.Y - map.Resolution,p.X + map.Resolution, p.Y + map.Resolution)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and use this to query for your points.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 May 2010 15:13:15 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2010-05-18T15:13:15Z</dc:date>
    <item>
      <title>Find closest point?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/find-closest-point/m-p/459220#M11844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've been trying to write a selection tool (just a simple tool that does not require the user to draw a rectangle, etc but rather just click on the map) that will work against a point layer.&amp;nbsp; The problem I've found is that its difficult to click exactly on the point when the map is zoomed out.&amp;nbsp; I'm wondering if someone has sample code for finding the nearest point based on the coordinates clicked on?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help you can provide!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 May 2010 23:53:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/find-closest-point/m-p/459220#M11844</guid>
      <dc:creator>MichaelMacDonald</dc:creator>
      <dc:date>2010-05-17T23:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Find closest point?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/find-closest-point/m-p/459221#M11845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Instead of using a point for querying, create a small envelope around the point. Ie. this create a box 2x2 pixels around the click-point:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; new Envelope(p.X - map.Resolution, p.Y - map.Resolution,p.X + map.Resolution, p.Y + map.Resolution)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and use this to query for your points.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 15:13:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/find-closest-point/m-p/459221#M11845</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2010-05-18T15:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Find closest point?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/find-closest-point/m-p/459222#M11846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Instead of using a point for querying, create a small envelope around the point. Ie. this create a box 2x2 pixels around the click-point:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; new Envelope(p.X - map.Resolution, p.Y - map.Resolution,p.X + map.Resolution, p.Y + map.Resolution)&lt;BR /&gt;and use this to query for your points.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, I've tried that, can't keep to get it going properly.&amp;nbsp; It still doesn't seem to be selecting the point I want.&amp;nbsp; There is no way to use geoprocessing to grab the closest point to a mapclick is there? Or would that take significantly longer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 23:58:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/find-closest-point/m-p/459222#M11846</guid>
      <dc:creator>MichaelMacDonald</dc:creator>
      <dc:date>2010-05-20T23:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Find closest point?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/find-closest-point/m-p/459223#M11847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the same issue with finding the closest location clicked on a map between a set of simple PolylineN objects.&amp;nbsp; I could contract the search envelope to yield just the section to click on but that would make it pretty hard to use.&amp;nbsp; Is there some sort of method to cal that would find the closest PolylineN feature based on the x y you click on a map?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jul 2010 15:38:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/find-closest-point/m-p/459223#M11847</guid>
      <dc:creator>KevinManning</dc:creator>
      <dc:date>2010-07-30T15:38:19Z</dc:date>
    </item>
  </channel>
</rss>

