<?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 Problem with FeatureLayer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-featurelayer/m-p/324368#M29875</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I was tried to load all my layers with esri.layers.FeatureLayer, but some features are not loaded. When I switch to esri.layers.ArcGISTiledMapServiceLayer, all layers loaded correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Here are some screenshots:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://oi42.tinypic.com/51y8o5.jpg"&gt;&lt;IMG src="http://oi42.tinypic.com/51y8o5.jpg" /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;This one use ArcGISTiledMapServiceLayer with code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
map.addLayer(new esri.layers.ArcGISTiledMapServiceLayer("http://localhost/ArcGIS/rest/services/Test/MapServer"));&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://oi41.tinypic.com/qwx8d0.jpg"&gt;&lt;IMG src="http://oi41.tinypic.com/qwx8d0.jpg" /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;This one use FeatureLayer with code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
layers = new Array();

layers[0] = new esri.layers.FeatureLayer("http://localhost/ArcGIS/rest/services/Test/MapServer/0", {
&amp;nbsp;&amp;nbsp; mode : esri.layers.FeatureLayer.MODE_ONDEMAND,
&amp;nbsp;&amp;nbsp; outFields : ["*"]
&amp;nbsp; });

layers[1] = new esri.layers.FeatureLayer("http://localhost/ArcGIS/rest/services/Test/MapServer/1", {
&amp;nbsp;&amp;nbsp; mode : esri.layers.FeatureLayer.MODE_ONDEMAND,
&amp;nbsp;&amp;nbsp; outFields : ["*"]
&amp;nbsp; });

map.addLayers(layers);
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know where is the problem, any suggestion will be appreciate! Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jan 2012 19:38:17 GMT</pubDate>
    <dc:creator>YanyiZhang</dc:creator>
    <dc:date>2012-01-03T19:38:17Z</dc:date>
    <item>
      <title>Problem with FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-featurelayer/m-p/324368#M29875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I was tried to load all my layers with esri.layers.FeatureLayer, but some features are not loaded. When I switch to esri.layers.ArcGISTiledMapServiceLayer, all layers loaded correct.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Here are some screenshots:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://oi42.tinypic.com/51y8o5.jpg"&gt;&lt;IMG src="http://oi42.tinypic.com/51y8o5.jpg" /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;This one use ArcGISTiledMapServiceLayer with code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
map.addLayer(new esri.layers.ArcGISTiledMapServiceLayer("http://localhost/ArcGIS/rest/services/Test/MapServer"));&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://oi41.tinypic.com/qwx8d0.jpg"&gt;&lt;IMG src="http://oi41.tinypic.com/qwx8d0.jpg" /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;This one use FeatureLayer with code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
layers = new Array();

layers[0] = new esri.layers.FeatureLayer("http://localhost/ArcGIS/rest/services/Test/MapServer/0", {
&amp;nbsp;&amp;nbsp; mode : esri.layers.FeatureLayer.MODE_ONDEMAND,
&amp;nbsp;&amp;nbsp; outFields : ["*"]
&amp;nbsp; });

layers[1] = new esri.layers.FeatureLayer("http://localhost/ArcGIS/rest/services/Test/MapServer/1", {
&amp;nbsp;&amp;nbsp; mode : esri.layers.FeatureLayer.MODE_ONDEMAND,
&amp;nbsp;&amp;nbsp; outFields : ["*"]
&amp;nbsp; });

map.addLayers(layers);
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know where is the problem, any suggestion will be appreciate! Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 19:38:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-featurelayer/m-p/324368#M29875</guid>
      <dc:creator>YanyiZhang</dc:creator>
      <dc:date>2012-01-03T19:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with FeatureLayer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-featurelayer/m-p/324369#M29876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK. I found the problem and solution. In ArcGIS Server service setting, there is a property named "Maximum Number of Records Returned by Server", by default it's 500. Just set it to a large enough number, and problem solved.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2012 20:13:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/problem-with-featurelayer/m-p/324369#M29876</guid>
      <dc:creator>YanyiZhang</dc:creator>
      <dc:date>2012-01-05T20:13:17Z</dc:date>
    </item>
  </channel>
</rss>

