<?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 feature layer on off in javascript 3.38 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-on-off-in-javascript-3-38/m-p/1120388#M75406</link>
    <description>&lt;P&gt;hi, i am new to this java script api.i want to turn on and off feature layer with check box.&lt;/P&gt;&lt;P&gt;my code is here ..&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;var finalurl = base_layer_url + '/?token=' + response.d.Result;&lt;BR /&gt;var featureLayer = new FeatureLayer(finalurl, {&lt;BR /&gt;mode: FeatureLayer.MODE_ONDEMAND,&lt;BR /&gt;outFields: ["*"]&lt;/P&gt;&lt;P&gt;});&lt;BR /&gt;// map.addLayer(featureLayer);&lt;BR /&gt;sessionStorage.setItem("pointurl", finalurl);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//line -layer//&lt;/P&gt;&lt;P&gt;var finalurl_line = base_layer_url_line + '/?token=' + response.d.Result;&lt;BR /&gt;var featureLayer1 = new FeatureLayer(finalurl_line);&lt;BR /&gt;// map.addLayer(featureLayer);&lt;BR /&gt;sessionStorage.setItem("lineurl", finalurl_line);&lt;BR /&gt;//polygon-layer//&lt;/P&gt;&lt;P&gt;var finalurl_poly = base_layer_url_poly + '/?token=' + response.d.Result;&lt;BR /&gt;var featureLayer2 = new FeatureLayer(finalurl_poly);&lt;BR /&gt;// map.addLayer(featureLayer);&lt;BR /&gt;sessionStorage.setItem("polyurl", finalurl_poly);&lt;/P&gt;&lt;P&gt;map.addLayers([featureLayer, featureLayer1, featureLayer2]);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;anyone help me???&lt;/P&gt;</description>
    <pubDate>Fri, 26 Nov 2021 06:08:40 GMT</pubDate>
    <dc:creator>priyammohanty</dc:creator>
    <dc:date>2021-11-26T06:08:40Z</dc:date>
    <item>
      <title>feature layer on off in javascript 3.38</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-on-off-in-javascript-3-38/m-p/1120388#M75406</link>
      <description>&lt;P&gt;hi, i am new to this java script api.i want to turn on and off feature layer with check box.&lt;/P&gt;&lt;P&gt;my code is here ..&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;var finalurl = base_layer_url + '/?token=' + response.d.Result;&lt;BR /&gt;var featureLayer = new FeatureLayer(finalurl, {&lt;BR /&gt;mode: FeatureLayer.MODE_ONDEMAND,&lt;BR /&gt;outFields: ["*"]&lt;/P&gt;&lt;P&gt;});&lt;BR /&gt;// map.addLayer(featureLayer);&lt;BR /&gt;sessionStorage.setItem("pointurl", finalurl);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//line -layer//&lt;/P&gt;&lt;P&gt;var finalurl_line = base_layer_url_line + '/?token=' + response.d.Result;&lt;BR /&gt;var featureLayer1 = new FeatureLayer(finalurl_line);&lt;BR /&gt;// map.addLayer(featureLayer);&lt;BR /&gt;sessionStorage.setItem("lineurl", finalurl_line);&lt;BR /&gt;//polygon-layer//&lt;/P&gt;&lt;P&gt;var finalurl_poly = base_layer_url_poly + '/?token=' + response.d.Result;&lt;BR /&gt;var featureLayer2 = new FeatureLayer(finalurl_poly);&lt;BR /&gt;// map.addLayer(featureLayer);&lt;BR /&gt;sessionStorage.setItem("polyurl", finalurl_poly);&lt;/P&gt;&lt;P&gt;map.addLayers([featureLayer, featureLayer1, featureLayer2]);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;anyone help me???&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 06:08:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/feature-layer-on-off-in-javascript-3-38/m-p/1120388#M75406</guid>
      <dc:creator>priyammohanty</dc:creator>
      <dc:date>2021-11-26T06:08:40Z</dc:date>
    </item>
  </channel>
</rss>

