<?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 JS API - is there a method to change opacity of a basemap? in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/js-api-is-there-a-method-to-change-opacity-of-a/m-p/760519#M5178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We would like to implement a basemap opacity slider but there doesn't seem to be a method to set this property...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Sep 2015 12:42:27 GMT</pubDate>
    <dc:creator>TimWood</dc:creator>
    <dc:date>2015-09-30T12:42:27Z</dc:date>
    <item>
      <title>JS API - is there a method to change opacity of a basemap?</title>
      <link>https://community.esri.com/t5/developers-questions/js-api-is-there-a-method-to-change-opacity-of-a/m-p/760519#M5178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We would like to implement a basemap opacity slider but there doesn't seem to be a method to set this property...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 12:42:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/js-api-is-there-a-method-to-change-opacity-of-a/m-p/760519#M5178</guid>
      <dc:creator>TimWood</dc:creator>
      <dc:date>2015-09-30T12:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: JS API - is there a method to change opacity of a basemap?</title>
      <link>https://community.esri.com/t5/developers-questions/js-api-is-there-a-method-to-change-opacity-of-a/m-p/760520#M5179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This might help: &lt;A href="https://community.esri.com/thread/94149"&gt;Help setting opacity/transparency of Basemap&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 12:47:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/js-api-is-there-a-method-to-change-opacity-of-a/m-p/760520#M5179</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2015-09-30T12:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: JS API - is there a method to change opacity of a basemap?</title>
      <link>https://community.esri.com/t5/developers-questions/js-api-is-there-a-method-to-change-opacity-of-a/m-p/760521#M5180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes there are a few ways to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE cellspacing="0" class="syntaxTABLE syntaxdetailstable" style="margin: 0.1em 0 0.3em; font-family: 'Lucida Grande', 'Segoe UI', Arial, sans-serif; border-width: 1px 1px 0px; border-style: solid; border-color: #d9d9d9; color: #4d4d4d; background-color: #fafafa;"&gt;&lt;TBODY&gt;&lt;TR style="border-bottom-width: 1px; border-bottom-color: #ededed;"&gt;&lt;TD class="name syntaxDetailTABLE" style="border-width: 0px 0px 1px; border-style: solid; border-color: #d9d9d9; padding: 4px 1px 4px 5px;"&gt;&amp;lt;&lt;CODE style="font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; background: transparent;"&gt;&lt;A href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number" style="color: #00629b;"&gt;Number&lt;/A&gt;&lt;/CODE&gt;&amp;gt; opacity&lt;/TD&gt;&lt;TD class="syntaxDetailTABLE required" style="border-width: 0px 0px 1px; border-style: solid; border-color: #d9d9d9; padding: 4px 1px 4px 5px;"&gt;Optional&lt;/TD&gt;&lt;TD class="syntaxDetailTABLE description" style="border-width: 0px 0px 1px; border-style: solid; border-color: #d9d9d9; padding: 4px 1px 4px 5px;"&gt;Initial opacity or transparency of the basemap layer. Values range from 0.0 to 1.0 where 0.0 is 100% transparent and 1.0 has no transprency. The default value is 1.0.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/basemaplayer-amd.html" title="https://developers.arcgis.com/javascript/jsapi/basemaplayer-amd.html"&gt;BasemapLayer | API Reference | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want to use arcgis basemap or your own? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 12:49:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/js-api-is-there-a-method-to-change-opacity-of-a/m-p/760521#M5180</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2015-09-30T12:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: JS API - is there a method to change opacity of a basemap?</title>
      <link>https://community.esri.com/t5/developers-questions/js-api-is-there-a-method-to-change-opacity-of-a/m-p/760522#M5181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is the setOpacity(); method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/arcgisdynamicmapservicelayer-amd.html#setopacity" title="https://developers.arcgis.com/javascript/jsapi/arcgisdynamicmapservicelayer-amd.html#setopacity"&gt;ArcGISDynamicMapServiceLayer | API Reference | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 12:50:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/js-api-is-there-a-method-to-change-opacity-of-a/m-p/760522#M5181</guid>
      <dc:creator>StevenGraf1</dc:creator>
      <dc:date>2015-09-30T12:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: JS API - is there a method to change opacity of a basemap?</title>
      <link>https://community.esri.com/t5/developers-questions/js-api-is-there-a-method-to-change-opacity-of-a/m-p/760523#M5182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the responses so far.&amp;nbsp; I should probably clarify...&lt;/P&gt;&lt;P&gt;We're using our own basemaps, not the ESRI ones, so we creating a new BasemapLayer object then adding it to a new Basemap object.&amp;nbsp; Interestingly you can also use an esri.layers.ArcGISTiledMapServiceLayer as a value for the Basemap "layer" property so I'm not completely sure what the BasemapLayer object is for.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/basemaplayer-amd.html" title="https://developers.arcgis.com/javascript/jsapi/basemaplayer-amd.html"&gt;BasemapLayer | API Reference | ArcGIS API for JavaScript&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/basemap-amd.html" title="https://developers.arcgis.com/javascript/jsapi/basemap-amd.html"&gt;Basemap | API Reference | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Neither the BasemapLayer or the Basemap object appear to have an opacity property.&amp;nbsp; I tried using an esri.layers.ArcGISTiledMapServiceLayer as the "layer" property of the Basemap object instead of a BasemapLayer object then setting the opacity of the esri.layers.ArcGISTiledMapServiceLayer but that doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I can work round it by adding the base mapping as a normal map layer (map.addLayer) then setting the opacity of that, but it would mean we couldn't use things like the basemap gallery or basemap toggle widgets.&amp;nbsp; Also, I don't know what the benefits of BasemapLayer and Basemap are.&amp;nbsp; I think I read somewhere about using the levels of detail (lods) to set the number of tick points on a zoom slider but I can't find it now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 13:21:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/js-api-is-there-a-method-to-change-opacity-of-a/m-p/760523#M5182</guid>
      <dc:creator>TimWood</dc:creator>
      <dc:date>2015-09-30T13:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: JS API - is there a method to change opacity of a basemap?</title>
      <link>https://community.esri.com/t5/developers-questions/js-api-is-there-a-method-to-change-opacity-of-a/m-p/760524#M5183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might check out this thread. They hooked the slider up to the basemap being displayed on the map and changed it between 2.&amp;nbsp; It might provide some guidance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/36812"&gt;set basemap opacity with slider&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Steven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Sep 2015 13:31:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/js-api-is-there-a-method-to-change-opacity-of-a/m-p/760524#M5183</guid>
      <dc:creator>StevenGraf1</dc:creator>
      <dc:date>2015-09-30T13:31:26Z</dc:date>
    </item>
  </channel>
</rss>

