<?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: Make ArcGISDynamicMapServiceLayer Invisible,Low Opacity or Transparent at Scale L in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/make-arcgisdynamicmapservicelayer-invisible-low/m-p/461263#M42629</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure if you're trying to write something more modular, but you could always look in REST at the scale that corresponds with a particular level for your tiled service and then use it to setMaxScale() on the entire DynamicMapService layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/arcgisdynamicmapservicelayer.htm#setMaxScale"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/arcgisdynamicmapservicelayer.htm#setMaxScale&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Aug 2012 15:34:37 GMT</pubDate>
    <dc:creator>JohnGravois</dc:creator>
    <dc:date>2012-08-10T15:34:37Z</dc:date>
    <item>
      <title>Make ArcGISDynamicMapServiceLayer Invisible,Low Opacity or Transparent at Scale Level</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/make-arcgisdynamicmapservicelayer-invisible-low/m-p/461262#M42628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a&amp;nbsp; ArcGISDynamicMapServiceLayer that I only want to make it visible when you get higher than scale 4 in the map as defined by my ArcGISTiledMapServiceLayer and I can't find a good way to do this.&amp;nbsp; I have it so that the layers aren't visible in mxd at these scales but I had to use a nontransparent ImageFormat to get the detail I wanted in the layer.&amp;nbsp; I think I'm almost there, code excerpts are below.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.connect(map, "onExtentChange", LayerVisible)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; function LayerVisible(extent, delta, outLevelChange, outLod) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; if(outLod.level &amp;gt; 4) {&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;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to use something like MyLayer.setOpacity(0) inside the brackets but I can't seem to pass the MyLayer properly to a function or access it from within the function without passing it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone help me or tell me how else to make an entire dynamicservicelayer not show at a certain scale.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 17:25:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/make-arcgisdynamicmapservicelayer-invisible-low/m-p/461262#M42628</guid>
      <dc:creator>JoshuaWallin</dc:creator>
      <dc:date>2012-08-09T17:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Make ArcGISDynamicMapServiceLayer Invisible,Low Opacity or Transparent at Scale L</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/make-arcgisdynamicmapservicelayer-invisible-low/m-p/461263#M42629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure if you're trying to write something more modular, but you could always look in REST at the scale that corresponds with a particular level for your tiled service and then use it to setMaxScale() on the entire DynamicMapService layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/arcgisdynamicmapservicelayer.htm#setMaxScale"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/arcgisdynamicmapservicelayer.htm#setMaxScale&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 15:34:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/make-arcgisdynamicmapservicelayer-invisible-low/m-p/461263#M42629</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2012-08-10T15:34:37Z</dc:date>
    </item>
  </channel>
</rss>

