<?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 ViewpointChanged event raised multiple time in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/viewpointchanged-event-raised-multiple-time/m-p/621260#M7624</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've subscribed ViewpointChanged event&amp;nbsp;and running some code&amp;nbsp;whenever map extent changes or zoom in/out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I observed that whenever I interact with map e.g. zoom in/out event get fired multiple times(3-4) and along with that code executes and slow down the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I prevent event execution multiple times or just capture the last instance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Version: WPF 100.8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 May 2020 03:34:30 GMT</pubDate>
    <dc:creator>PrashantKirpan</dc:creator>
    <dc:date>2020-05-18T03:34:30Z</dc:date>
    <item>
      <title>ViewpointChanged event raised multiple time</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/viewpointchanged-event-raised-multiple-time/m-p/621260#M7624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've subscribed ViewpointChanged event&amp;nbsp;and running some code&amp;nbsp;whenever map extent changes or zoom in/out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I observed that whenever I interact with map e.g. zoom in/out event get fired multiple times(3-4) and along with that code executes and slow down the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I prevent event execution multiple times or just capture the last instance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Version: WPF 100.8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2020 03:34:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/viewpointchanged-event-raised-multiple-time/m-p/621260#M7624</guid>
      <dc:creator>PrashantKirpan</dc:creator>
      <dc:date>2020-05-18T03:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: ViewpointChanged event raised multiple time</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/viewpointchanged-event-raised-multiple-time/m-p/621261#M7625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you're zooming or panning, the viewpoint is changing and therefore the event is firing. You don't want to run a bunch of heavy operations in that event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to run some more expensive code, I'd recommend you use the NavigationCompleted event, which is more meant for that sort of thing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2020 06:48:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/viewpointchanged-event-raised-multiple-time/m-p/621261#M7625</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2020-05-18T06:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: ViewpointChanged event raised multiple time</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/viewpointchanged-event-raised-multiple-time/m-p/621262#M7626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Morten for reply. It's working !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2020 07:36:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/viewpointchanged-event-raised-multiple-time/m-p/621262#M7626</guid>
      <dc:creator>PrashantKirpan</dc:creator>
      <dc:date>2020-05-18T07:36:44Z</dc:date>
    </item>
  </channel>
</rss>

