<?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: New to scripting - Need help with a basic script with functions in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534739#M49845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, the typo and missing { fixed it.&amp;nbsp; I have the extent set at 7 so the state of NY appears as a whole for now and the layers are triggered when you zoom in.&amp;nbsp; I have other layers that need to go on that will be visible at that level, just wanted to get the basics working for now.&amp;nbsp; It's a slow process when you are learning.&amp;nbsp; Appreciate the help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sue&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Feb 2014 14:58:28 GMT</pubDate>
    <dc:creator>SuzanneRoussie</dc:creator>
    <dc:date>2014-02-26T14:58:28Z</dc:date>
    <item>
      <title>New to scripting - Need help with a basic script with functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534734#M49840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am in the process of putting together a basic map by learning off the tutorials and examples found on the JavaScript examples site and I am trying to use a home button, legend, and scale on the same map.&amp;nbsp; I had the home button and scale working but when I added the script for the legend it stopped working.&amp;nbsp; I was wondering if there was a limit on how many functions could be called the way I have it set up or if I am missing something else. I am sure there is a different way to do this but since I have never written anything in JavaScript before I thought this was the best way to learn. I have enclosed the text file of my code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sue&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 13:43:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534734#M49840</guid>
      <dc:creator>SuzanneRoussie</dc:creator>
      <dc:date>2014-02-26T13:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: New to scripting - Need help with a basic script with functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534735#M49841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You have a typo&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;"esri/map", "esri/layers/FeatureLayer", "esri/dijit/Legend", &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "esri/digit/Scalebar","esri/dijit/HomeButton", &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/_base/array", "dojo/parser", &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/layout/BorderContainer", "dijit/layout/ContentPane",&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/layout/AccordionContainer", "dojo/domReady!"&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That should be&amp;nbsp; "esri/dijit/Scalebar"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 14:14:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534735#M49841</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-02-26T14:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: New to scripting - Need help with a basic script with functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534736#M49842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are also missing a '{' in the style tag for the #map DIV.&amp;nbsp; Also, if you want the legend to display the layers, you will need to change your extent to where they are visible.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;map = new Map("map", {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; basemap:"streets",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; center: [-96.509, 38.367],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zoom: 14
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:13:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534736#M49842</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-11T23:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: New to scripting - Need help with a basic script with functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534737#M49843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Would this file just need to be added to a server that has IIS in the following location:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;\\ServerName\c$\inetpub\wwwroot&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in order to have a simple working web application?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 14:47:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534737#M49843</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2014-02-26T14:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: New to scripting - Need help with a basic script with functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534738#M49844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Would this file just need to be added to a server that has IIS in the following location:&lt;BR /&gt;&lt;BR /&gt;\\ServerName\c$\inetpub\wwwroot&lt;BR /&gt;&lt;BR /&gt;in order to have a simple working web application?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Exactly, just like the Flex application.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 14:48:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534738#M49844</guid>
      <dc:creator>TimWitt</dc:creator>
      <dc:date>2014-02-26T14:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: New to scripting - Need help with a basic script with functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534739#M49845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, the typo and missing { fixed it.&amp;nbsp; I have the extent set at 7 so the state of NY appears as a whole for now and the layers are triggered when you zoom in.&amp;nbsp; I have other layers that need to go on that will be visible at that level, just wanted to get the basics working for now.&amp;nbsp; It's a slow process when you are learning.&amp;nbsp; Appreciate the help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sue&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 14:58:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534739#M49845</guid>
      <dc:creator>SuzanneRoussie</dc:creator>
      <dc:date>2014-02-26T14:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: New to scripting - Need help with a basic script with functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534740#M49846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Glad to help. Please click the check mark in the post that best answered your question and the up arrows on the posts that were helpful. This will help others who may be searching about this topic.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 15:14:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534740#M49846</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-02-26T15:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: New to scripting - Need help with a basic script with functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534741#M49847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All set.&amp;nbsp; Thanks again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 15:31:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534741#M49847</guid>
      <dc:creator>SuzanneRoussie</dc:creator>
      <dc:date>2014-02-26T15:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: New to scripting - Need help with a basic script with functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534742#M49848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Question in regards to this sample application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I added my own mapservice layer and it gets added to the map and the legend.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why don't the ESRI mapservices get added to the legend?&amp;nbsp; I don't see a place in the text file where they are being excluded from the legend.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 16:45:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534742#M49848</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2014-02-26T16:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: New to scripting - Need help with a basic script with functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534743#M49849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The 'layerInfos' option controls this.&amp;nbsp; See the help &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/legend-amd.html"&gt;here&lt;/A&gt;&lt;SPAN&gt;. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Specify a subset of the layers in the map to display in the legend. If not set all layers in the map will display in the legend.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 17:11:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534743#M49849</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2014-02-26T17:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: New to scripting - Need help with a basic script with functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534744#M49850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jake:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the section you are talking about in my file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//add the legend&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.on("layers-add-result", function (evt) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var layerInfo = arrayUtils.map(evt.layers, function (layer, index) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return {layer:layer.layer, title:layer.layer.name};&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (layerInfo.length &amp;gt; 0) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var legendDijit = new Legend({&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map: map,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layerInfos: layerInfo&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, "legendDiv");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; legendDijit.startup();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do not see anywhere in this code where layers are being excluded, yet sampleserver3.arcgisonline.com mapservice layers are not being added to the legend.&amp;nbsp; I do not understand.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 18:14:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534744#M49850</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2014-02-26T18:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: New to scripting - Need help with a basic script with functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534745#M49851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I thought you were referring to ESRI's basemaps.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the layers are not drawn, for example, due to a scale dependency they will not show in the legend.&amp;nbsp; Try adjusting the zoom level of your application.&amp;nbsp; Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;map = new Map("map", {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; basemap:"streets",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; center: [-96.509, 38.367],
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;zoom: 14&lt;/STRONG&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:14:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534745#M49851</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-11T23:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: New to scripting - Need help with a basic script with functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534746#M49852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jake.&amp;nbsp; I did not realize that you had to zoom that far in for ESRI's river and waterbodies layers to show up.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 18:28:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534746#M49852</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2014-02-26T18:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: New to scripting - Need help with a basic script with functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534747#M49853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You do have the option of showing the legend for layers that are invisible due to scale dependency. Set the respectCurrentMapScale to false.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var legendDijit = new Legend({
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map: map,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; layerInfos: layerInfo,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; respectCurrentMapScale: false
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }, "legendDiv");&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:14:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534747#M49853</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-12-11T23:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: New to scripting - Need help with a basic script with functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534748#M49854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would like to add a dynamic mapservice to the javascript webmap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried the following syntax but the mapservice does not show up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;var bound = new ArcGISDynamicMapServiceLayer("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://arcgis/ArcGIS/rest/services/MapServices/Bound_D/MapServer" rel="nofollow" target="_blank"&gt;http://arcgis/ArcGIS/rest/services/MapServices/Bound_D/MapServer&lt;/A&gt;&lt;SPAN&gt;", {&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; useMapImage: true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone tell me what I am doing wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 18:41:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534748#M49854</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2014-02-26T18:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: New to scripting - Need help with a basic script with functions</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534749#M49855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I would like to add a dynamic mapservice to the javascript webmap.&lt;BR /&gt;&lt;BR /&gt;I tried the following syntax but the mapservice does not show up.&lt;BR /&gt;&lt;BR /&gt;var bound = new ArcGISDynamicMapServiceLayer("http://arcgis/ArcGIS/rest/services/MapServices/Bound_D/MapServer", {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; useMapImage: true&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;BR /&gt;&lt;BR /&gt;Can anyone tell me what I am doing wrong?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should start a new thread about this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2014 18:45:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/new-to-scripting-need-help-with-a-basic-script/m-p/534749#M49855</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-02-26T18:45:13Z</dc:date>
    </item>
  </channel>
</rss>

