<?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: What's the correct syntax for adding multiple operationalLayers? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-s-the-correct-syntax-for-adding-multiple/m-p/458314#M42322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Asked too soon! I figured it out. My brackets probably aren't how they are suppose to be location wise, but oh well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;operationalLayers: [
&amp;nbsp; {type: "feature",
&amp;nbsp; url: "http://xxxxxx.com/arcgis/rest/services/xxx/xxx/FeatureServer/5",
&amp;nbsp; options: {
&amp;nbsp;&amp;nbsp; id: "Fiber1",
&amp;nbsp;&amp;nbsp; title: "Cable",
&amp;nbsp;&amp;nbsp; opacity: 1.0,
&amp;nbsp;&amp;nbsp; visible: true,
&amp;nbsp;&amp;nbsp; infoTemplate: new esri.InfoTemplate(),
&amp;nbsp;&amp;nbsp; mode: esri.layers.FeatureLayer.MODE_SNAPSHOT
&amp;nbsp; }},
&amp;nbsp; {type: "feature",
&amp;nbsp; url: "http://xxxxxx.com/arcgis/rest/services/xxx/xxx/FeatureServer/4",
&amp;nbsp; options: {
&amp;nbsp;&amp;nbsp; id: "Fiber2",
&amp;nbsp;&amp;nbsp; title: "Junctions",
&amp;nbsp;&amp;nbsp; opacity: 1.0,
&amp;nbsp;&amp;nbsp; visible: true,
&amp;nbsp;&amp;nbsp; infoTemplate: new esri.InfoTemplate(),
&amp;nbsp;&amp;nbsp; mode: esri.layers.FeatureLayer.MODE_SNAPSHOT
&amp;nbsp; }}
],&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 20:24:25 GMT</pubDate>
    <dc:creator>IB1</dc:creator>
    <dc:date>2021-12-11T20:24:25Z</dc:date>
    <item>
      <title>What's the correct syntax for adding multiple operationalLayers?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-s-the-correct-syntax-for-adding-multiple/m-p/458313#M42321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm working off of a template and am trying to add multiple operationalLayers. I feel like I've tried every possible combination.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I just add one layer, it works fine:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;operationalLayers: [{
&amp;nbsp; type: "feature",
&amp;nbsp; url: "http://xxxxxx.com/arcgis/rest/services/xxx/xxx/FeatureServer/5",
&amp;nbsp; options: {
&amp;nbsp;&amp;nbsp; id: "Fiber1",
&amp;nbsp;&amp;nbsp; title: "Cable",
&amp;nbsp;&amp;nbsp; opacity: 1.0,
&amp;nbsp;&amp;nbsp; visible: true,
&amp;nbsp;&amp;nbsp; infoTemplate: new esri.InfoTemplate(),
&amp;nbsp;&amp;nbsp; mode: esri.layers.FeatureLayer.MODE_SNAPSHOT
&amp;nbsp; }
 }],&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I try to add another, none of them load when I start the index.html:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;operationalLayers: [{
&amp;nbsp; type: "feature",
&amp;nbsp; url: "http://xxxxxx.com/arcgis/rest/services/xxx/xxx/FeatureServer/5",
&amp;nbsp; options: {
&amp;nbsp;&amp;nbsp; id: "Fiber1",
&amp;nbsp;&amp;nbsp; title: "Cable",
&amp;nbsp;&amp;nbsp; opacity: 1.0,
&amp;nbsp;&amp;nbsp; visible: true,
&amp;nbsp;&amp;nbsp; infoTemplate: new esri.InfoTemplate(),
&amp;nbsp;&amp;nbsp; mode: esri.layers.FeatureLayer.MODE_SNAPSHOT
&amp;nbsp; }
&amp;nbsp; type: "feature",
&amp;nbsp; url: "http://xxxxxx.com/arcgis/rest/services/xxx/xxx/FeatureServer/4",
&amp;nbsp; options: {
&amp;nbsp;&amp;nbsp; id: "Fiber2",
&amp;nbsp;&amp;nbsp; title: "Junction",
&amp;nbsp;&amp;nbsp; opacity: 1.0,
&amp;nbsp;&amp;nbsp; visible: true,
&amp;nbsp;&amp;nbsp; infoTemplate: new esri.InfoTemplate(),
&amp;nbsp;&amp;nbsp; mode: esri.layers.FeatureLayer.MODE_SNAPSHOT
&amp;nbsp; }
 }],&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I doing wrong here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Mar 2013 22:17:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-s-the-correct-syntax-for-adding-multiple/m-p/458313#M42321</guid>
      <dc:creator>IB1</dc:creator>
      <dc:date>2013-03-02T22:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: What's the correct syntax for adding multiple operationalLayers?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-s-the-correct-syntax-for-adding-multiple/m-p/458314#M42322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Asked too soon! I figured it out. My brackets probably aren't how they are suppose to be location wise, but oh well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;operationalLayers: [
&amp;nbsp; {type: "feature",
&amp;nbsp; url: "http://xxxxxx.com/arcgis/rest/services/xxx/xxx/FeatureServer/5",
&amp;nbsp; options: {
&amp;nbsp;&amp;nbsp; id: "Fiber1",
&amp;nbsp;&amp;nbsp; title: "Cable",
&amp;nbsp;&amp;nbsp; opacity: 1.0,
&amp;nbsp;&amp;nbsp; visible: true,
&amp;nbsp;&amp;nbsp; infoTemplate: new esri.InfoTemplate(),
&amp;nbsp;&amp;nbsp; mode: esri.layers.FeatureLayer.MODE_SNAPSHOT
&amp;nbsp; }},
&amp;nbsp; {type: "feature",
&amp;nbsp; url: "http://xxxxxx.com/arcgis/rest/services/xxx/xxx/FeatureServer/4",
&amp;nbsp; options: {
&amp;nbsp;&amp;nbsp; id: "Fiber2",
&amp;nbsp;&amp;nbsp; title: "Junctions",
&amp;nbsp;&amp;nbsp; opacity: 1.0,
&amp;nbsp;&amp;nbsp; visible: true,
&amp;nbsp;&amp;nbsp; infoTemplate: new esri.InfoTemplate(),
&amp;nbsp;&amp;nbsp; mode: esri.layers.FeatureLayer.MODE_SNAPSHOT
&amp;nbsp; }}
],&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:24:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-s-the-correct-syntax-for-adding-multiple/m-p/458314#M42322</guid>
      <dc:creator>IB1</dc:creator>
      <dc:date>2021-12-11T20:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: What's the correct syntax for adding multiple operationalLayers?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-s-the-correct-syntax-for-adding-multiple/m-p/458315#M42323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just in case you don't know this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;jsonlint.com&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 19:47:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-s-the-correct-syntax-for-adding-multiple/m-p/458315#M42323</guid>
      <dc:creator>JianHuang</dc:creator>
      <dc:date>2013-03-04T19:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: What's the correct syntax for adding multiple operationalLayers?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-s-the-correct-syntax-for-adding-multiple/m-p/458316#M42324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Just in case you don't know this:&lt;BR /&gt;jsonlint.com&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As a noob, how would that have helped me? Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 21:37:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-s-the-correct-syntax-for-adding-multiple/m-p/458316#M42324</guid>
      <dc:creator>IB1</dc:creator>
      <dc:date>2013-03-04T21:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: What's the correct syntax for adding multiple operationalLayers?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-s-the-correct-syntax-for-adding-multiple/m-p/458317#M42325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;As a noob, how would that have helped me? Thanks.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It would indicate to you if your json was fomatted corretly. Basically it would have indicated to you that you had the parens incorrectly placed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 14:19:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/what-s-the-correct-syntax-for-adding-multiple/m-p/458317#M42325</guid>
      <dc:creator>DianaBenedict</dc:creator>
      <dc:date>2013-03-05T14:19:52Z</dc:date>
    </item>
  </channel>
</rss>

