<?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: Save map as png in ArcGIS for Windows Mobile Questions</title>
    <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/save-map-as-png/m-p/480160#M1979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Guessing the CollectFeaturesTask.CollectionCompleted event must fire before map control event is triggered to update the display. You could do your validation in CollectionCompleted and set a flag of true/false and then see if using say- FeatureLayer event DataChanged or maybe the map event LayersDrawingCompleted to get image and send email if validation is true.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jun 2011 13:17:52 GMT</pubDate>
    <dc:creator>MelindaFrost</dc:creator>
    <dc:date>2011-06-10T13:17:52Z</dc:date>
    <item>
      <title>Save map as png</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/save-map-as-png/m-p/480159#M1978</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 created an extension that listens to the CollectFeaturesTask.CollectionCompleted event, and checks if a feature meets certain requirements. In some cases, an email must be sent, including an image of the map. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have this almost working now: When I click on "Finish", the map image is created and the email is sent, but the image shows the map as it was &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;before&lt;/SPAN&gt;&lt;SPAN&gt; the last feature was added to it: The feature that was just being edited does not show.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried this code, but the map is only refreshed &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;after&lt;/SPAN&gt;&lt;SPAN&gt; the mapview becomes active again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;var map = MobileApplication.Current.Map;
map.CenterAt(feature.Geometry.GetExtent().GetCenter());
map.InvalidateVisual();
SaveMapImage(map);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how to force a refresh on the map (This is a WPF map, so I do not have the GetMapImage(), Refresh() or Invalidate() methods)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 13:56:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/save-map-as-png/m-p/480159#M1978</guid>
      <dc:creator>BerendVeldkamp</dc:creator>
      <dc:date>2011-06-09T13:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Save map as png</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/save-map-as-png/m-p/480160#M1979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Guessing the CollectFeaturesTask.CollectionCompleted event must fire before map control event is triggered to update the display. You could do your validation in CollectionCompleted and set a flag of true/false and then see if using say- FeatureLayer event DataChanged or maybe the map event LayersDrawingCompleted to get image and send email if validation is true.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 13:17:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/save-map-as-png/m-p/480160#M1979</guid>
      <dc:creator>MelindaFrost</dc:creator>
      <dc:date>2011-06-10T13:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Save map as png</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/save-map-as-png/m-p/480161#M1980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Melinda,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your suggestion, I think this should be the way to go. Unfortunately reality is tougher, and I couldn't find an event that is triggered 'at the right moment'. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I ended up drawing the feature's swatch manually on top of the generated image. Since in my case they are always point features, that's not too hard.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2011 08:38:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/save-map-as-png/m-p/480161#M1980</guid>
      <dc:creator>BerendVeldkamp</dc:creator>
      <dc:date>2011-06-14T08:38:00Z</dc:date>
    </item>
  </channel>
</rss>

