<?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: Trying to modify - Public Information Map gallery sample in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-modify-public-information-map-gallery/m-p/215766#M19996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I want to include a dynamic map layer in the layers.js that will always be the active layer for map click events to display attributes in an info window but not appear in the Layers Menu for turning its display on and off. (It will be totally transparent and I do not want the user to even know the layer exists.)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Bob,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the layer isn't being displayed, and is only being used for query purposes, then rather than adding an "invisible" layer a better method is not to add it to the Layers list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead, set up a new list for "query layers", which are those which should be queried when you click on the map (whether or not they are currently visible).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Aug 2012 05:23:02 GMT</pubDate>
    <dc:creator>StephenLead</dc:creator>
    <dc:date>2012-08-06T05:23:02Z</dc:date>
    <item>
      <title>Trying to modify - Public Information Map gallery sample</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-modify-public-information-map-gallery/m-p/215763#M19993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to modify the gallery sample - Public Information Map - 2.0. I want to include a dynamic map layer in the layers.js that will always be the active layer for map click events to display attributes in an info window but not appear in the Layers Menu for turning its display on and off. (It will be totally transparent and I do not want the user to even know the layer exists.) I have figured out the transparency and active for click event part but not how to remove it from the drop down Layers Menu. I would appreciate any help to this struggling beginner.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2012 18:07:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-modify-public-information-map-gallery/m-p/215763#M19993</guid>
      <dc:creator>BobPuterski</dc:creator>
      <dc:date>2012-08-02T18:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to modify - Public Information Map gallery sample</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-modify-public-information-map-gallery/m-p/215764#M19994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am trying to modify the gallery sample - Public Information Map - 2.0. I want to include a dynamic map layer in the layers.js that will always be the active layer for map click events to display attributes in an info window but not appear in the Layers Menu for turning its display on and off. (It will be totally transparent and I do not want the user to even know the layer exists.) I have figured out the transparency and active for click event part but not how to remove it from the drop down Layers Menu. I would appreciate any help to this struggling beginner.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also modified this template, and in the end, it was a huge pain, and I almost ended up redeveloping the entire app.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you look, there's probably a function that adds all layer variables to an array, then later, another function loops over the array adding each layer to the legend widget. Just stop the layer in question from being added to the array and your done.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 12:48:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-modify-public-information-map-gallery/m-p/215764#M19994</guid>
      <dc:creator>danbecker</dc:creator>
      <dc:date>2012-08-03T12:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to modify - Public Information Map gallery sample</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-modify-public-information-map-gallery/m-p/215765#M19995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Dan, I'll try and find those loops.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 15:12:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-modify-public-information-map-gallery/m-p/215765#M19995</guid>
      <dc:creator>BobPuterski</dc:creator>
      <dc:date>2012-08-03T15:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to modify - Public Information Map gallery sample</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-modify-public-information-map-gallery/m-p/215766#M19996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I want to include a dynamic map layer in the layers.js that will always be the active layer for map click events to display attributes in an info window but not appear in the Layers Menu for turning its display on and off. (It will be totally transparent and I do not want the user to even know the layer exists.)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Bob,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the layer isn't being displayed, and is only being used for query purposes, then rather than adding an "invisible" layer a better method is not to add it to the Layers list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead, set up a new list for "query layers", which are those which should be queried when you click on the map (whether or not they are currently visible).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 05:23:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-modify-public-information-map-gallery/m-p/215766#M19996</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2012-08-06T05:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to modify - Public Information Map gallery sample</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-modify-public-information-map-gallery/m-p/215767#M19997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Steve and Dan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem solved. As Dan suggested all I had to do was place a conditional around the inner part of adding the html lines to construct the menu items. Steve's solution is more logical and will be used in my next revision when I have more time to fully customize the app. I just didn't have time to figure out adding a layer without going thru the black box userconfig. and whether something else would break if it wasn't in the layers or basemap list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan's solution involved: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/*------------------------------------*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// CREATE LAYER ITEMS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/*------------------------------------*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;function configureLayers(){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;. . .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in the bottom section&amp;nbsp; insert a conditional such as&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; if (userConfig.layerItems&lt;I&gt;.uniqueID !== 'your_map_service') {&lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;before the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // COMPOSE HTML LIST STRING&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; html += '&amp;lt;li id="' + userConfig.layerItems&lt;I&gt;.uniqueID . . .&lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and before the append&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (userConfig.layerItems&lt;I&gt;.uniqueID !== your_map_service') {&lt;/I&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; html += '&amp;lt;/li&amp;gt;';&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // APPEND HTML&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $('#layersList').append(html);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 16:02:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/trying-to-modify-public-information-map-gallery/m-p/215767#M19997</guid>
      <dc:creator>BobPuterski</dc:creator>
      <dc:date>2012-08-06T16:02:38Z</dc:date>
    </item>
  </channel>
</rss>

