<?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 LocalMapService not updating layout on map PanTo call in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/localmapservice-not-updating-layout-on-map-panto/m-p/708521#M3596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an interesting problem.&amp;nbsp; I am using a LocalMapService object with ArcGISDynamicMapServiceLayer to display a large streets shapefile, large enough that a LocalFeatureService is not a viable option.&amp;nbsp; This map uses GPS data, obtained through a service and not the hardware directly, to track the users location, and keeps the map centered on that moving point.&amp;nbsp; The update frequency is such that calling the PanTo function with the default animation duration set causes a strange oscillation with the map center to locations that have not been called for.&amp;nbsp; As such, I set the pan duration to 0s which seems to correct that issue.&amp;nbsp; However, what I then find is that the map does not update its layout when the PanTo completes.&amp;nbsp; This may be related to the fact that there are upwards of 3 calls per second, but I'd still expect the new map tiles to be rendered from the dynamic layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only way I seem to be able to get an update to happen is to stop the auto-centering, and pan the map with the mouse only.&amp;nbsp; This same behavior is repeatable by only calling PanTo once.&amp;nbsp; I've tried invalidating the display and calling UpdateLayout immediately after the PanTo command, but this does not cause an update to occur.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions?&amp;nbsp; The auto-tracking behavior and use of a LocalMapService is a current requirement dictated by the size of our dataset to display.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As an additional question...&amp;nbsp; I see that it is possible to set the background color for the map; however, when using a LocalMapService, it appears that it renders tiles assuming a white background.&amp;nbsp; This makes lines and text labels look very poor when using a black background for a night-mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help or suggestions on this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Dec 2012 13:32:01 GMT</pubDate>
    <dc:creator>AaronBotnick</dc:creator>
    <dc:date>2012-12-10T13:32:01Z</dc:date>
    <item>
      <title>LocalMapService not updating layout on map PanTo call</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/localmapservice-not-updating-layout-on-map-panto/m-p/708521#M3596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an interesting problem.&amp;nbsp; I am using a LocalMapService object with ArcGISDynamicMapServiceLayer to display a large streets shapefile, large enough that a LocalFeatureService is not a viable option.&amp;nbsp; This map uses GPS data, obtained through a service and not the hardware directly, to track the users location, and keeps the map centered on that moving point.&amp;nbsp; The update frequency is such that calling the PanTo function with the default animation duration set causes a strange oscillation with the map center to locations that have not been called for.&amp;nbsp; As such, I set the pan duration to 0s which seems to correct that issue.&amp;nbsp; However, what I then find is that the map does not update its layout when the PanTo completes.&amp;nbsp; This may be related to the fact that there are upwards of 3 calls per second, but I'd still expect the new map tiles to be rendered from the dynamic layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only way I seem to be able to get an update to happen is to stop the auto-centering, and pan the map with the mouse only.&amp;nbsp; This same behavior is repeatable by only calling PanTo once.&amp;nbsp; I've tried invalidating the display and calling UpdateLayout immediately after the PanTo command, but this does not cause an update to occur.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions?&amp;nbsp; The auto-tracking behavior and use of a LocalMapService is a current requirement dictated by the size of our dataset to display.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As an additional question...&amp;nbsp; I see that it is possible to set the background color for the map; however, when using a LocalMapService, it appears that it renders tiles assuming a white background.&amp;nbsp; This makes lines and text labels look very poor when using a black background for a night-mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help or suggestions on this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 13:32:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/localmapservice-not-updating-layout-on-map-panto/m-p/708521#M3596</guid>
      <dc:creator>AaronBotnick</dc:creator>
      <dc:date>2012-12-10T13:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: LocalMapService not updating layout on map PanTo call</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/localmapservice-not-updating-layout-on-map-panto/m-p/708522#M3597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This seems to be related to the number of updates that are coming in from the GPS service.&amp;nbsp; On each update received, there is a call to PanTo.&amp;nbsp; I'm assuming that each successive call results in a cancellation of the previous request.&amp;nbsp; The problem is that I never seem to get an updated view, as every update request to the map service will be cancelled by the next call.&amp;nbsp; The more weird part is that if I turn off the location tracking (constant use of PanTo to center the map), the final PanTo command never results in a refresh/update/redraw of the map data until I move the map with the mouse.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2012 20:37:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/localmapservice-not-updating-layout-on-map-panto/m-p/708522#M3597</guid>
      <dc:creator>AaronBotnick</dc:creator>
      <dc:date>2012-12-10T20:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: LocalMapService not updating layout on map PanTo call</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/localmapservice-not-updating-layout-on-map-panto/m-p/708523#M3598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I figured out a workaround for my problem.&amp;nbsp; When a pan event comes through, I "queue" further pan events until the ExtentChanged event fires and then pan to the saved location.&amp;nbsp; This effectively filters pans so that they don't interfere with one another.&amp;nbsp; This wouldn't even be an issue if PanTo worked correctly in rapid succession when animation is turned off using PanDuration.&amp;nbsp; Under those circumstances, the LocalMapService layer doesn't redraw.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 19:09:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/localmapservice-not-updating-layout-on-map-panto/m-p/708523#M3598</guid>
      <dc:creator>AaronBotnick</dc:creator>
      <dc:date>2012-12-12T19:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: LocalMapService not updating layout on map PanTo call</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/localmapservice-not-updating-layout-on-map-panto/m-p/708524#M3599</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;Many thanks for the update - we'll investigate whether this is something that need to be addressed in the API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 06:42:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/localmapservice-not-updating-layout-on-map-panto/m-p/708524#M3599</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2012-12-13T06:42:10Z</dc:date>
    </item>
  </channel>
</rss>

