<?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 Programmatically Click Map in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/programmatically-click-map/m-p/477173#M12309</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just a quick question wondering whether it's possible or not to invoke a Map Click programmatically.&amp;nbsp; If this is possible, can I set a specific coordinate to click on the map, or perhaps where the map is currently centered?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I'm trying to do is allow a user to add a feature using the Editor tool by setting XY coordinates instead of clicking on the map.&amp;nbsp; I think this will be the easiest way, but if I'm missing something please let me know.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Will&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Mar 2011 13:51:38 GMT</pubDate>
    <dc:creator>WilliamKimrey</dc:creator>
    <dc:date>2011-03-08T13:51:38Z</dc:date>
    <item>
      <title>Programmatically Click Map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/programmatically-click-map/m-p/477173#M12309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just a quick question wondering whether it's possible or not to invoke a Map Click programmatically.&amp;nbsp; If this is possible, can I set a specific coordinate to click on the map, or perhaps where the map is currently centered?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I'm trying to do is allow a user to add a feature using the Editor tool by setting XY coordinates instead of clicking on the map.&amp;nbsp; I think this will be the easiest way, but if I'm missing something please let me know.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Will&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2011 13:51:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/programmatically-click-map/m-p/477173#M12309</guid>
      <dc:creator>WilliamKimrey</dc:creator>
      <dc:date>2011-03-08T13:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically Click Map</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/programmatically-click-map/m-p/477174#M12310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think your best option for adding a graphic to your map given the X,Y coordinates is by setting Graphic.Geometry property. See this sample: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AddGraphics" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AddGraphics&lt;/A&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
 MapPoint mapPoint = new MapPoint(X, Y);
 graphicsLayer.Graphics.Add(new Graphic() { Geometry =&amp;nbsp; mapPoint});
 MyMap.ZoomToResolution(MyMap.Resolution*.5, mapPoint);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may not be able to use Editor.Add for this purpose: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Editor~Add.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.Editor~Add.html&lt;/A&gt;&lt;SPAN&gt;. Add CommandParameter does not take the geometry, instead you need to pass either symbol or feature type.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 21:04:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/programmatically-click-map/m-p/477174#M12310</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2021-12-11T21:04:55Z</dc:date>
    </item>
  </channel>
</rss>

