<?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: Feature symbol not displaying correctly in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-symbol-not-displaying-correctly/m-p/1161952#M76942</link>
    <description>&lt;P&gt;One workaround to render cartographic line symbols in feature services is to use &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html" target="_self"&gt;CIMSymbols&lt;/A&gt;. I had to symbolise polyline with 2 parallel black lines (like railway). I ended up using CIMLineSymbol to solve my problem.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Apr 2022 05:59:52 GMT</pubDate>
    <dc:creator>HenryKo2</dc:creator>
    <dc:date>2022-04-07T05:59:52Z</dc:date>
    <item>
      <title>Feature symbol not displaying correctly</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-symbol-not-displaying-correctly/m-p/416865#M38341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;I am using ArcGIS Javascript API version 3.31 for my desktop web application, we have a Feature Service layer of type esriGeometryPolyline.&lt;BR /&gt;The issue is that the arrow symbol from the layer, do not render properly when the layer is added to the map, instead thick lines display on the map.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The image below displays the rendering of the layer having an arrow symbol on the map.&lt;BR /&gt; &lt;IMG alt="Layer not rendering arrow on map" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/483942_NotWorkingLayer.PNG" /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;EM&gt;&amp;nbsp;(Fig1: NotWorkingLayer.png)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;however, we have another feature service layer, having an arrow symbol, which works perfectly fine with the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Layer rendering arrow on map" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/483943_WorkingLayer.PNG" /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;EM&gt; &amp;nbsp; (Fig2: WorkingLayer.png)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code to add feature layer on map:&lt;BR /&gt;&lt;EM&gt;var serviceUrl='URL to the service'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;var featureLayer = new this.esri.FeatureLayer(serviceUrl, {&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; url: serviceUrl&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; mode: this.esri.FeatureLayer.MODE_SNAPSHOT,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; outFields: ["*"]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; });&lt;/EM&gt;&lt;BR /&gt; map.addLayers([featureLayer ]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached the layer samples.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2020 04:58:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-symbol-not-displaying-correctly/m-p/416865#M38341</guid>
      <dc:creator>YashvitNaik</dc:creator>
      <dc:date>2020-03-04T04:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Feature symbol not displaying correctly</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-symbol-not-displaying-correctly/m-p/416866#M38342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yashvit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The issue you are encountering is that when a layer is added as a FeatureLayer in the map it is using clientside rendering and there is no support for Cartographic line symbols like lines with arrows indicating direction on the clientside. Most likely the other layer that you are showing in your image is being added to the map as a ArcGISDynamicMapserviceLayer and thus the rendering for that layer is done on the server which does support cartographic line symbols.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2020 13:36:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-symbol-not-displaying-correctly/m-p/416866#M38342</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-03-04T13:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Feature symbol not displaying correctly</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-symbol-not-displaying-correctly/m-p/1161952#M76942</link>
      <description>&lt;P&gt;One workaround to render cartographic line symbols in feature services is to use &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html" target="_self"&gt;CIMSymbols&lt;/A&gt;. I had to symbolise polyline with 2 parallel black lines (like railway). I ended up using CIMLineSymbol to solve my problem.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 05:59:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-symbol-not-displaying-correctly/m-p/1161952#M76942</guid>
      <dc:creator>HenryKo2</dc:creator>
      <dc:date>2022-04-07T05:59:52Z</dc:date>
    </item>
  </channel>
</rss>

