<?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: FeatureLayer not showing in 4.9 vs. 4.8 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-not-showing-in-4-9-vs-4-8/m-p/287552#M26469</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you access the service url via a browser?&amp;nbsp;&lt;A class="link-titled" href="http://igis.spokanecounty.org/arcgis/rest/services/PublicWorks/CommuteTripReductionDev/MapServer/0" title="http://igis.spokanecounty.org/arcgis/rest/services/PublicWorks/CommuteTripReductionDev/MapServer/0"&gt;http://igis.spokanecounty.org/arcgis/rest/services/PublicWorks/CommuteTripReductionDev/MapServer/0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You mentioned that this used to work at 4.8? If I try the&amp;nbsp;your code&amp;nbsp;at 4.8 it isn't working for me.&amp;nbsp; Perhaps something has changed with the permissions of the service?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Nov 2018 19:40:30 GMT</pubDate>
    <dc:creator>KellyHutchins</dc:creator>
    <dc:date>2018-11-01T19:40:30Z</dc:date>
    <item>
      <title>FeatureLayer not showing in 4.9 vs. 4.8</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-not-showing-in-4-9-vs-4-8/m-p/287549#M26466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I use 4.9, the feature layer&amp;nbsp;doesn't display on the map.&amp;nbsp; When I use 4.8, it does display.&amp;nbsp;One possible problem may be that the spatial references are different between the basemap and my feature layer.&amp;nbsp; My&amp;nbsp;layer in the map service&amp;nbsp;has two unique values for its symbology, so I tried using a single symbol renderer in the code instead.&lt;/P&gt;&lt;P&gt;My goal is&amp;nbsp;to edit the feature layer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;require([&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;"esri/Map"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;"esri/views/MapView"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;"esri/layers/FeatureLayer"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;"esri/Graphic"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;//"esri/widgets/Expand",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;//"esri/widgets/FeatureForm",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;"esri/geometry/Extent"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;"esri/geometry/SpatialReference"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;],&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Map, MapView, FeatureLayer, Graphic,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;//Expand, FeatureForm,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Extent, SpatialReference&lt;/P&gt;&lt;P&gt;) {&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;let&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; editFeature, highlight, featureForm, editArea, attributeEditing, updateInstructionDiv;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; initialExtent = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; Extent(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-117.83, 47.23,&lt;/P&gt;&lt;P&gt;-117.03, 48.055,&lt;/P&gt;&lt;P&gt;SpatialReference({ wkid: 4326 })&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;var&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; citiesRenderer = {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; type: &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;"simple"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;// autocasts as new SimpleRenderer()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;symbol: {&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; type: &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;"simple-marker"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;// autocasts as new SimpleMarkerSymbol()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;size: 10,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; color: &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;"#FF4000"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; outline: { &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;// autocasts as new SimpleLineSymbol()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; color: [255, 64, 0, 0.4], &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;// autocasts as new Color()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;width: 7&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;const&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; layerWorksite = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; FeatureLayer({&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;&lt;SPAN&gt;//url: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fservices.arcgis.com%2FV6ZHFr6zdgNZuVG0%2FArcGIS%2Frest%2Fservices%2FIncidentsReport%2FFeatureServer%2F0" rel="nofollow" target="_blank"&gt;https://services.arcgis.com/V6ZHFr6zdgNZuVG0/ArcGIS/rest/services/IncidentsReport/FeatureServer/0&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; url: &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Figis.spokanecounty.org%2Farcgis%2Frest%2Fservices%2FPublicWorks%2FCommuteTripReductionDev%2FMapServer%2F0" rel="nofollow" target="_blank"&gt;http://igis.spokanecounty.org/arcgis/rest/services/PublicWorks/CommuteTripReductionDev/MapServer/0&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;renderer: citiesRenderer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;const&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; map = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; Map({&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; basemap: &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;"topo"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;layers: [layerWorksite]&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;const&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; view = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; MapView({&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; container: &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;"viewDiv"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;map: map,&lt;/P&gt;&lt;P&gt;extent: initialExtent&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;//center: [-117.4123, 47.65726],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: small; font-family: Consolas;"&gt;//zoom: 12&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 23:02:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-not-showing-in-4-9-vs-4-8/m-p/287549#M26466</guid>
      <dc:creator>LoriEmerson_McCormack</dc:creator>
      <dc:date>2018-10-30T23:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer not showing in 4.9 vs. 4.8</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-not-showing-in-4-9-vs-4-8/m-p/287550#M26467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't access your service but the code does work with the commented out Incidents feature service. If you run your app are there any errors in the developer console?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 16:40:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-not-showing-in-4-9-vs-4-8/m-p/287550#M26467</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2018-11-01T16:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer not showing in 4.9 vs. 4.8</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-not-showing-in-4-9-vs-4-8/m-p/287551#M26468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are 4 errors in the developer console relating to the layer in my map service.&amp;nbsp; What is unique about this layer is that it is an XY Event based on a SQL Server view.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="developer console error messages" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/426858_ArcGISAPIDemo49WithOwnMapService.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ultimately, I would like to use a feature class instead where the user can click on the map to add a new point feature.&amp;nbsp; When I submitted the first&amp;nbsp;question on October 30th, I was&amp;nbsp;using a&amp;nbsp;point feature class with a&amp;nbsp;State Plane projection.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Today, however,&amp;nbsp;I am using&amp;nbsp;an XY Event layer in the map service&amp;nbsp;and using SQL Server stored procedure to insert a record into the SQL Server table with X,Y coordinates that the API captures when the user clicks on the map.&amp;nbsp; I defined the spatial reference for&amp;nbsp;my&amp;nbsp;XY Event layer to be the same as the ESRI basemap.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 17:56:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-not-showing-in-4-9-vs-4-8/m-p/287551#M26468</guid>
      <dc:creator>LoriEmerson_McCormack</dc:creator>
      <dc:date>2018-11-01T17:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer not showing in 4.9 vs. 4.8</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-not-showing-in-4-9-vs-4-8/m-p/287552#M26469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you access the service url via a browser?&amp;nbsp;&lt;A class="link-titled" href="http://igis.spokanecounty.org/arcgis/rest/services/PublicWorks/CommuteTripReductionDev/MapServer/0" title="http://igis.spokanecounty.org/arcgis/rest/services/PublicWorks/CommuteTripReductionDev/MapServer/0"&gt;http://igis.spokanecounty.org/arcgis/rest/services/PublicWorks/CommuteTripReductionDev/MapServer/0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You mentioned that this used to work at 4.8? If I try the&amp;nbsp;your code&amp;nbsp;at 4.8 it isn't working for me.&amp;nbsp; Perhaps something has changed with the permissions of the service?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 19:40:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-not-showing-in-4-9-vs-4-8/m-p/287552#M26469</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2018-11-01T19:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer not showing in 4.9 vs. 4.8</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-not-showing-in-4-9-vs-4-8/m-p/287553#M26470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is working for me in 4.8.&amp;nbsp; See the map and the developer console messages.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ArcGIS API Sample using 4.8 and my feature layer -- map" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/426942_ArcGISAPIDemo48WithOwnMapService_Map.png" /&gt;&lt;IMG alt="ArcGIS API Sample using 4.8 and my feature layer -- developer console messages" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/426943_ArcGISAPIDemo48WithOwnMapService_Messages.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2018 20:08:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-not-showing-in-4-9-vs-4-8/m-p/287553#M26470</guid>
      <dc:creator>LoriEmerson_McCormack</dc:creator>
      <dc:date>2018-11-01T20:08:32Z</dc:date>
    </item>
  </channel>
</rss>

