<?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 Feature Layer will not show in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-will-not-show/m-p/722370#M67076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I currently cannot get the feature layer to load at the moment. Any help is appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt; &amp;lt;head&amp;gt;&lt;BR /&gt; &amp;lt;meta charset="utf-8" /&amp;gt;&lt;BR /&gt; &amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" /&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;Intro to MapView - Create a 2D map&amp;lt;/title&amp;gt;&lt;BR /&gt; &amp;lt;style&amp;gt;&lt;BR /&gt; html,&lt;BR /&gt; body,&lt;BR /&gt; #viewDiv {&lt;BR /&gt; padding: 0;&lt;BR /&gt; margin: 0;&lt;BR /&gt; height: 100%;&lt;BR /&gt; width: 100%;&lt;BR /&gt; }&lt;BR /&gt; &amp;lt;/style&amp;gt;&lt;BR /&gt; &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/4.15/esri/themes/light/main.css" /&amp;gt;&lt;BR /&gt; &amp;lt;script src="https://js.arcgis.com/4.15/"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt; &amp;lt;script&amp;gt;&lt;BR /&gt; require(["esri/Map", &lt;BR /&gt; "esri/views/MapView", &lt;BR /&gt; "esri/layers/FeatureLayer",&lt;BR /&gt; ], function(Map, MapView, FeatureLayer) {&lt;BR /&gt; &lt;BR /&gt; var map = new Map({&lt;BR /&gt; basemap: "streets"&lt;BR /&gt; });&lt;BR /&gt; var view = new MapView({&lt;BR /&gt; container: "viewDiv", // Reference to the scene div created in step 5&lt;BR /&gt; map: map, // Reference to the map object created before the scene&lt;BR /&gt; zoom: 11, // Sets zoom level based on level of detail (LOD)&lt;BR /&gt; center: [282.9, 38.9] // Sets center point of view using longitude,latitude&lt;BR /&gt; });&lt;BR /&gt; &lt;BR /&gt; var publicschoolsLayer = new FeatureLayer({&lt;BR /&gt; url: "https://services1.arcgis.com/MiBZ4u97DWldovjI/arcgis/rest/services/schools_services/FeatureServer/0/query?outFields=*&amp;amp;where=1%3D1"&lt;BR /&gt; });&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; });&lt;BR /&gt; &amp;lt;/script&amp;gt;&lt;BR /&gt; &amp;lt;/head&amp;gt;&lt;BR /&gt; &amp;lt;body&amp;gt;&lt;BR /&gt; &amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 02 May 2020 05:35:19 GMT</pubDate>
    <dc:creator>CodyHilton</dc:creator>
    <dc:date>2020-05-02T05:35:19Z</dc:date>
    <item>
      <title>Feature Layer will not show</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-will-not-show/m-p/722370#M67076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I currently cannot get the feature layer to load at the moment. Any help is appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;BR /&gt;&amp;lt;html&amp;gt;&lt;BR /&gt; &amp;lt;head&amp;gt;&lt;BR /&gt; &amp;lt;meta charset="utf-8" /&amp;gt;&lt;BR /&gt; &amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" /&amp;gt;&lt;BR /&gt; &amp;lt;title&amp;gt;Intro to MapView - Create a 2D map&amp;lt;/title&amp;gt;&lt;BR /&gt; &amp;lt;style&amp;gt;&lt;BR /&gt; html,&lt;BR /&gt; body,&lt;BR /&gt; #viewDiv {&lt;BR /&gt; padding: 0;&lt;BR /&gt; margin: 0;&lt;BR /&gt; height: 100%;&lt;BR /&gt; width: 100%;&lt;BR /&gt; }&lt;BR /&gt; &amp;lt;/style&amp;gt;&lt;BR /&gt; &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/4.15/esri/themes/light/main.css" /&amp;gt;&lt;BR /&gt; &amp;lt;script src="https://js.arcgis.com/4.15/"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt; &amp;lt;script&amp;gt;&lt;BR /&gt; require(["esri/Map", &lt;BR /&gt; "esri/views/MapView", &lt;BR /&gt; "esri/layers/FeatureLayer",&lt;BR /&gt; ], function(Map, MapView, FeatureLayer) {&lt;BR /&gt; &lt;BR /&gt; var map = new Map({&lt;BR /&gt; basemap: "streets"&lt;BR /&gt; });&lt;BR /&gt; var view = new MapView({&lt;BR /&gt; container: "viewDiv", // Reference to the scene div created in step 5&lt;BR /&gt; map: map, // Reference to the map object created before the scene&lt;BR /&gt; zoom: 11, // Sets zoom level based on level of detail (LOD)&lt;BR /&gt; center: [282.9, 38.9] // Sets center point of view using longitude,latitude&lt;BR /&gt; });&lt;BR /&gt; &lt;BR /&gt; var publicschoolsLayer = new FeatureLayer({&lt;BR /&gt; url: "https://services1.arcgis.com/MiBZ4u97DWldovjI/arcgis/rest/services/schools_services/FeatureServer/0/query?outFields=*&amp;amp;where=1%3D1"&lt;BR /&gt; });&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; });&lt;BR /&gt; &amp;lt;/script&amp;gt;&lt;BR /&gt; &amp;lt;/head&amp;gt;&lt;BR /&gt; &amp;lt;body&amp;gt;&lt;BR /&gt; &amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;&lt;BR /&gt; &amp;lt;/body&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 May 2020 05:35:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-will-not-show/m-p/722370#M67076</guid>
      <dc:creator>CodyHilton</dc:creator>
      <dc:date>2020-05-02T05:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer will not show</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-will-not-show/m-p/722371#M67077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Drop the "/query?outFields=*&amp;amp;where=1%3D1" from your url and you will be good to go.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 May 2020 14:24:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-will-not-show/m-p/722371#M67077</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-05-02T14:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer will not show</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-will-not-show/m-p/722372#M67078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried that but it did not work. I believe it could be because I do not have access to it. I thought I set up the server connection correct but I believe I did not at this point.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 May 2020 16:56:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-will-not-show/m-p/722372#M67078</guid>
      <dc:creator>CodyHilton</dc:creator>
      <dc:date>2020-05-02T16:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer will not show</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-will-not-show/m-p/722373#M67079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to make it work. Just need to drop the filter as Robert mentioned above and add the Feature layer to the map:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=layers-featurelayer" title="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=layers-featurelayer"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 May 2020 17:42:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-will-not-show/m-p/722373#M67079</guid>
      <dc:creator>VictorCoelho</dc:creator>
      <dc:date>2020-05-02T17:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer will not show</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-will-not-show/m-p/722374#M67080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Schools are located in Florida, your cod is centering the map in a different area:&amp;nbsp;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/490735_pastedImage_1.png" /&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 May 2020 17:48:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-will-not-show/m-p/722374#M67080</guid>
      <dc:creator>VictorCoelho</dc:creator>
      <dc:date>2020-05-02T17:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer will not show</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-will-not-show/m-p/722375#M67081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;okay, ill try again, I had it centered differently cause I was looking at different data trying to decide&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 May 2020 18:26:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-will-not-show/m-p/722375#M67081</guid>
      <dc:creator>CodyHilton</dc:creator>
      <dc:date>2020-05-02T18:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer will not show</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-will-not-show/m-p/722376#M67082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I still cannot get it to load, I am not sure why. If you were able to load then the rest of the code should be fine.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 May 2020 18:58:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-will-not-show/m-p/722376#M67082</guid>
      <dc:creator>CodyHilton</dc:creator>
      <dc:date>2020-05-02T18:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer will not show</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-will-not-show/m-p/722377#M67083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #569cd6;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;publicschoolsLayer&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;url:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"https://services1.arcgis.com/MiBZ4u97DWldovjI/arcgis/rest/services/schools_services/FeatureServer/0/"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;});&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;map&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #dcdcaa;"&gt;add&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;publicschoolsLayer&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 May 2020 19:08:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-will-not-show/m-p/722377#M67083</guid>
      <dc:creator>VictorCoelho</dc:creator>
      <dc:date>2020-05-02T19:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer will not show</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-will-not-show/m-p/722378#M67084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked now, I was missing a line of code I forgot is needed, thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 May 2020 19:28:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-will-not-show/m-p/722378#M67084</guid>
      <dc:creator>CodyHilton</dc:creator>
      <dc:date>2020-05-02T19:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer will not show</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-will-not-show/m-p/722379#M67085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the help.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 May 2020 19:29:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-will-not-show/m-p/722379#M67085</guid>
      <dc:creator>CodyHilton</dc:creator>
      <dc:date>2020-05-02T19:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Feature Layer will not show</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-will-not-show/m-p/722380#M67086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm glad it worked, could you please mark the thread as resolved?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 May 2020 19:38:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-will-not-show/m-p/722380#M67086</guid>
      <dc:creator>VictorCoelho</dc:creator>
      <dc:date>2020-05-02T19:38:42Z</dc:date>
    </item>
  </channel>
</rss>

