<?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: Map.MouseMove Event issues in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-mousemove-event-issues/m-p/233657#M6008</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great! Just a quick comment that you should also make sure that you are not hooking up the map's MouseMove event handler more than once. This could be the case where you have a GraphicsLayer that could be initialized later in your application.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Sep 2010 14:17:45 GMT</pubDate>
    <dc:creator>AliMirzabeigi</dc:creator>
    <dc:date>2010-09-22T14:17:45Z</dc:date>
    <item>
      <title>Map.MouseMove Event issues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-mousemove-event-issues/m-p/233653#M6004</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'm making a funcion to show the mouse position on the map, but I'm having trouble fixing the following problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the user moves the mouse through the application before it finishes loading, this error occurs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
Runtime Error in Microsoft JScript: Unhandled Error in Silverlight Application Object reference not set to an instance of an object. 
&amp;nbsp;&amp;nbsp; in MDSalvador.MainPage.Mapa_MouseMove (Object sender, MouseEventArgs e)
&amp;nbsp;&amp;nbsp; in MS.Internal.CoreInvokeHandler.InvokeEventHandler (Int32 typeIndex, handlerDelegate Delegate, Object sender, Object args)
&amp;nbsp;&amp;nbsp; in MS.Internal.JoltHelper.FireEvent (unmanagedObj IntPtr, IntPtr unmanagedObjArgs, argsTypeIndex Int32, String eventName)
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm basicaly using the function shown here : &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#MouseCoords" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#MouseCoords&lt;/A&gt;&lt;SPAN&gt; except for that i'm showing only the coordinates of the map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:49:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-mousemove-event-issues/m-p/233653#M6004</guid>
      <dc:creator>jonataspovoas</dc:creator>
      <dc:date>2021-12-11T11:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Map.MouseMove Event issues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-mousemove-event-issues/m-p/233654#M6005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not able to replicate the issue using the SDK sample. What might be causing delay loading the map? I tried moving the mouse while the map is still loading and I do not get object reference not set to an instance exception. Have you tried setting breakpoint in the MouseMove event handler?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Sep 2010 15:54:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-mousemove-event-issues/m-p/233654#M6005</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-09-21T15:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Map.MouseMove Event issues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-mousemove-event-issues/m-p/233655#M6006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Add the following on your page constructor. MyMap is your map control:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
MyMap.Layers.LayersInitialized += new ESRI.ArcGIS.Client.LayerCollection.LayersInitializedHandler(Layers_LayersInitialized);
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The LayersInitialized event handler will hook up the mouse move handler of your map control:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
private void Layers_LayersInitialized(object sender, EventArgs args)
{
&amp;nbsp;&amp;nbsp; MyMap.MouseMove += new MouseEventHandler(MyMap_MouseMove);
}
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:49:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-mousemove-event-issues/m-p/233655#M6006</guid>
      <dc:creator>AliMirzabeigi</dc:creator>
      <dc:date>2021-12-11T11:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: Map.MouseMove Event issues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-mousemove-event-issues/m-p/233656#M6007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Add the following on your page constructor. MyMap is your map control:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
MyMap.Layers.LayersInitialized += new ESRI.ArcGIS.Client.LayerCollection.LayersInitializedHandler(Layers_LayersInitialized);
&lt;/PRE&gt;&lt;BR /&gt; &lt;BR /&gt;The LayersInitialized event handler will hook up the mouse move handler of your map control:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
private void Layers_LayersInitialized(object sender, EventArgs args)
{
&amp;nbsp;&amp;nbsp; MyMap.MouseMove += new MouseEventHandler(MyMap_MouseMove);
}
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot, this solved the problem &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 11:49:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-mousemove-event-issues/m-p/233656#M6007</guid>
      <dc:creator>jonataspovoas</dc:creator>
      <dc:date>2021-12-11T11:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Map.MouseMove Event issues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-mousemove-event-issues/m-p/233657#M6008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Great! Just a quick comment that you should also make sure that you are not hooking up the map's MouseMove event handler more than once. This could be the case where you have a GraphicsLayer that could be initialized later in your application.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Sep 2010 14:17:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/map-mousemove-event-issues/m-p/233657#M6008</guid>
      <dc:creator>AliMirzabeigi</dc:creator>
      <dc:date>2010-09-22T14:17:45Z</dc:date>
    </item>
  </channel>
</rss>

