<?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: Issue with setting MaxAllowableOffset? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/issue-with-setting-maxallowableoffset/m-p/240182#M6194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: jenniferdnery&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this also happen when zoomed out (no clipping)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jul 2012 00:54:45 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2012-07-03T00:54:45Z</dc:date>
    <item>
      <title>Issue with setting MaxAllowableOffset?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/issue-with-setting-maxallowableoffset/m-p/240181#M6193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: edson08&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am setting the MaxAllowableOffset using the following algorithm:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;return MapApplication.Current.Map.Resolution * 2;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Doing this on initial map initialization event, and also map extent changed event for the feature layer in question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This seems to speed up performance by from 60 sec to about 10 sec.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But the features "seem" to be distorted somehow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The feature are lines mainly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please see attachments.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The one without MaxAllowableOffset is clean and have only single lines.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But the one with MaxAllowableOffset has duplication of lines.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That is the main issue: other is it possible to speed up performance even further from 10 sec to something like 1 sec?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Jul 2012 21:19:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/issue-with-setting-maxallowableoffset/m-p/240181#M6193</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-07-01T21:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with setting MaxAllowableOffset?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/issue-with-setting-maxallowableoffset/m-p/240182#M6194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: jenniferdnery&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this also happen when zoomed out (no clipping)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 00:54:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/issue-with-setting-maxallowableoffset/m-p/240182#M6194</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-07-03T00:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with setting MaxAllowableOffset?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/issue-with-setting-maxallowableoffset/m-p/240183#M6195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes.&amp;nbsp; It appears so, though it's harder to see from higher levels.&amp;nbsp; but the lines seem duplicated....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;First pic (No MaxAllowableOffset), second (With MaxAllowableOffset)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;return MapApplication.Current.Map.Resolution* pixelTolerance&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;where pxelTolerance ranged from 2 to 200, trying different values... same result as far as duplication of lines and also performance.&amp;nbsp; Seem no difference in performance, as long as MaxAllowableOffset is used.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2012 15:40:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/issue-with-setting-maxallowableoffset/m-p/240183#M6195</guid>
      <dc:creator>EdwardSon</dc:creator>
      <dc:date>2012-07-03T15:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with setting MaxAllowableOffset?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/issue-with-setting-maxallowableoffset/m-p/240184#M6196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: jenniferdnery&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using the following code and I can't seem to reproduce. I don't see the features duplicated. Can you share some code or could you maybe tweak this to get to the same state as your app? Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp; &amp;lt;esri:Map x:Name="MyMap" WrapAround="True"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PropertyChanged="MyMap_PropertyChanged"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Extent="-9900723.24924544,3490730.30922668,-9828850.20838732,3542973.02580042"&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri:ArcGISTiledMapServiceLayer 
&amp;nbsp;&amp;nbsp;&amp;nbsp; Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" /&amp;gt;
&amp;nbsp;&amp;nbsp; &amp;lt;esri:FeatureLayer ID="MyLayer"
&amp;nbsp;&amp;nbsp;&amp;nbsp; Url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Hurricanes/NOAA_Tracks_1851_2007/MapServer/0"/&amp;gt;
&amp;nbsp; &amp;lt;/esri:Map&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp; private void MyMap_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
&amp;nbsp; {
&amp;nbsp;&amp;nbsp; if (e.PropertyName == "Resolution")
&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; var f = MyMap.Layers["MyLayer"] as FeatureLayer;
&amp;nbsp;&amp;nbsp;&amp;nbsp; f.MaxAllowableOffset = MyMap.Resolution * 2;
&amp;nbsp;&amp;nbsp;&amp;nbsp; f.Update();
&amp;nbsp;&amp;nbsp; }
&amp;nbsp; }
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:04:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/issue-with-setting-maxallowableoffset/m-p/240184#M6196</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T12:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with setting MaxAllowableOffset?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/issue-with-setting-maxallowableoffset/m-p/240185#M6197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The multiple lines are gone now.&amp;nbsp; Didn't have the featureLayer2.Update() in the event handler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, the layer is now taking too long to update which was not noticeable before because it was not updating on the event handler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The featurelayer is OnDemand with OnDemandCacheSize set to 1000.&amp;nbsp; It seems like even when zooming in the update is taking just as long as when fully zoomed out.&amp;nbsp; With OnDemand mode shouldn't it get faster if the map extent is reducing in size (zooming in)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does OnDemand only work with v3.0?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Current version is v2.4.&amp;nbsp; Have not upgraded yet.&amp;nbsp; There were some issues with the upgrade, and had to revert.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2012 18:55:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/issue-with-setting-maxallowableoffset/m-p/240185#M6197</guid>
      <dc:creator>EdwardSon</dc:creator>
      <dc:date>2012-07-04T18:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with setting MaxAllowableOffset?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/issue-with-setting-maxallowableoffset/m-p/240186#M6198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: dbroux&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Does OnDemand only work with v3.0?&lt;BR /&gt;Current version is v2.4. Have not upgraded yet.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No OnDemand is also working with 2.4.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It seems like even when zooming in the update is taking just as long as when fully zoomed out. With OnDemand mode shouldn't it get faster if the map extent is reducing in size (zooming in)?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes OnDemand should be fast when the map extent is reducing in size. The problem is your call to Update that reinitialize the cache at each zoom.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To avoid that you might set MaxAllowableOffset to a fixed value and not to call Update when the map extent changes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need MaxAllowableOffset depending on the zoom level you might create 2 (or more) feature layers with disjoint scale ranges and with a fixed MaxAllowableOffset depending on the scale range.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 08:36:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/issue-with-setting-maxallowableoffset/m-p/240186#M6198</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2012-07-16T08:36:52Z</dc:date>
    </item>
  </channel>
</rss>

