<?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: Webmap basemap opacity not honoured in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webmap-basemap-opacity-not-honoured/m-p/295951#M27172</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;(you'll have to forgive me if this isn't what you mean, I'm not overly familiar with the arcgis.com stuff)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I view:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.arcgis.com/home/webmap/viewer.html?webmap=b106b3fa92f041668f967b1223cffbeb"&gt;http://www.arcgis.com/home/webmap/viewer.html?webmap=b106b3fa92f041668f967b1223cffbeb&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see the base map with an opacity of 0.73, so to me it looks like the opacity value is being honoured.&amp;nbsp; (I assume you've changed it from 0.8200000000000001?!)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have I missed the point?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Aug 2012 09:57:06 GMT</pubDate>
    <dc:creator>__Rich_</dc:creator>
    <dc:date>2012-08-13T09:57:06Z</dc:date>
    <item>
      <title>Webmap basemap opacity not honoured</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webmap-basemap-opacity-not-honoured/m-p/295950#M27171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am consuming a webmap which has an opacity setting for the Bing imagery basemap.&amp;nbsp; The opacity value is being passed from ArcGIS Online in the webmap JSON but the arcgis utils library is not honouring this opacity value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;esri.arcgis.utils.createMap&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The webmap JSON in question is this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "baseMap": { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "baseMapLayers": [{ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "id": "BingMapsAerial", &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "opacity": 0.8200000000000001, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "visibility": true, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "type": "BingMapsAerial" &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; "title": "Bing Maps Aerial" &amp;nbsp;&amp;nbsp;&amp;nbsp; }, &amp;nbsp;&amp;nbsp;&amp;nbsp; "widgets": { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "editor": {} &amp;nbsp;&amp;nbsp;&amp;nbsp; }, &amp;nbsp;&amp;nbsp;&amp;nbsp; "version": "1.6"&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using version 3.0 of the JavaScript API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have reproduced this issue in the following sample:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ags_createwebmapid.html" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ags_createwebmapid.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the following webmap:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://www.arcgis.com/home/webmap/viewer.html?webmap=b106b3fa92f041668f967b1223cffbeb" rel="nofollow" target="_blank"&gt;http://www.arcgis.com/home/webmap/viewer.html?webmap=b106b3fa92f041668f967b1223cffbeb&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a known limitation? Or is this the remnants of the following bug that has not been fixed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/35759-How-to-set-BaseMapLayer-opacity?highlight=bing+opacity" rel="nofollow" target="_blank"&gt;http://forums.arcgis.com/threads/35759-How-to-set-BaseMapLayer-opacity?highlight=bing+opacity&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 09:04:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webmap-basemap-opacity-not-honoured/m-p/295950#M27171</guid>
      <dc:creator>SamLarsen</dc:creator>
      <dc:date>2012-08-13T09:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Webmap basemap opacity not honoured</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webmap-basemap-opacity-not-honoured/m-p/295951#M27172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;(you'll have to forgive me if this isn't what you mean, I'm not overly familiar with the arcgis.com stuff)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I view:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.arcgis.com/home/webmap/viewer.html?webmap=b106b3fa92f041668f967b1223cffbeb"&gt;http://www.arcgis.com/home/webmap/viewer.html?webmap=b106b3fa92f041668f967b1223cffbeb&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see the base map with an opacity of 0.73, so to me it looks like the opacity value is being honoured.&amp;nbsp; (I assume you've changed it from 0.8200000000000001?!)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have I missed the point?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 09:57:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webmap-basemap-opacity-not-honoured/m-p/295951#M27172</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-08-13T09:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Webmap basemap opacity not honoured</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webmap-basemap-opacity-not-honoured/m-p/295952#M27173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The webmap that i linked to is to be used as a test webmap to be consumed in the JavaScript API as shown in the sample that i also linked to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ags_createwebmapid.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ags_createwebmapid.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Therefore, a small amount of coding will be needed to embed the test webmap in the sample page in order to properly test for the bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The results you saw were expected - the webmap does honour the basemap transparency when viewed in the ArcGIS.com viewer.&amp;nbsp; It is not however honoured when the sample webmap is embedded in the sample page listed above.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 10:08:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webmap-basemap-opacity-not-honoured/m-p/295952#M27173</guid>
      <dc:creator>SamLarsen</dc:creator>
      <dc:date>2012-08-13T10:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Webmap basemap opacity not honoured</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webmap-basemap-opacity-not-honoured/m-p/295953#M27174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The webmap that i linked to is to be used as a test webmap to be consumed in the JavaScript API as shown in the sample that i also linked to:&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ags_createwebmapid.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/ags_createwebmapid.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Therefore, a small amount of coding will be needed to embed the test webmap in the sample page in order to properly test for the bug.&lt;BR /&gt;The results you saw were expected - the webmap does honour the basemap transparency when viewed in the ArcGIS.com viewer.&amp;nbsp; It is not however honoured when the sample webmap is embedded in the sample page listed above.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Ah, I see - knew I'd get the wrong end of the stick - first time I've tried one of these things &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just setup the sample locally and pointed it at the webmap and you're right it's 100% opaque.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Might just have a little trawl through the source code to see if the opacity is being ignored/overridden/mangled etc.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 10:16:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webmap-basemap-opacity-not-honoured/m-p/295953#M27174</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-08-13T10:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Webmap basemap opacity not honoured</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webmap-basemap-opacity-not-honoured/m-p/295954#M27175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I hack this into the _initLayer method:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;layer = new esri.virtualearth.VETiledLayer({ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bingMapsKey: options.bingMapsKey, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mapStyle: style, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id: layerObject.id, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; opacity:layerObject.opacity });&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;Then the opacity is obeyed, looks like someone missed it, or perhaps they've attempted to set it somewhere else, anyway hope that helps getting a proper fix in place &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;edit: looking at the code for the other layer types, that is the 'consistent' place for it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Guess someone forgot to include it for VETiledLayer...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Aug 2012 10:41:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webmap-basemap-opacity-not-honoured/m-p/295954#M27175</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-08-13T10:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Webmap basemap opacity not honoured</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webmap-basemap-opacity-not-honoured/m-p/295955#M27176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did that answer your question, Sam?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 08:25:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webmap-basemap-opacity-not-honoured/m-p/295955#M27176</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-08-14T08:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Webmap basemap opacity not honoured</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webmap-basemap-opacity-not-honoured/m-p/295956#M27177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Rich,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On which object is the _initLayer method?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 08:55:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webmap-basemap-opacity-not-honoured/m-p/295956#M27177</guid>
      <dc:creator>SamLarsen</dc:creator>
      <dc:date>2012-08-14T08:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Webmap basemap opacity not honoured</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webmap-basemap-opacity-not-honoured/m-p/295957#M27178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Rich,&lt;BR /&gt;&lt;BR /&gt;On which object is the _initLayer method?&lt;BR /&gt;&lt;BR /&gt;Sam&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;esri.arcgis.utils i.e. it's a bug in the JS API.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 09:02:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webmap-basemap-opacity-not-honoured/m-p/295957#M27178</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-08-14T09:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Webmap basemap opacity not honoured</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webmap-basemap-opacity-not-honoured/m-p/295958#M27179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Rich,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found that method and implemented the fix locally and it does work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am logging the bug and will post a bug reference when i get it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sam&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 09:25:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webmap-basemap-opacity-not-honoured/m-p/295958#M27179</guid>
      <dc:creator>SamLarsen</dc:creator>
      <dc:date>2012-08-14T09:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Webmap basemap opacity not honoured</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webmap-basemap-opacity-not-honoured/m-p/295959#M27180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Rich,&lt;BR /&gt;&lt;BR /&gt;I found that method and implemented the fix locally and it does work.&lt;BR /&gt;I am logging the bug and will post a bug reference when i get it.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Sam&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Sam,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cool - glad to have been of some help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rich&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 09:34:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webmap-basemap-opacity-not-honoured/m-p/295959#M27180</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-08-14T09:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Webmap basemap opacity not honoured</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webmap-basemap-opacity-not-honoured/m-p/295960#M27181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A bug has now been raised for this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NIM083988 "Javascript application which consumes an ArcGIS.com Web Map, does not honor transparency when using a basemap with Bing imagery."&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2012 07:47:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/webmap-basemap-opacity-not-honoured/m-p/295960#M27181</guid>
      <dc:creator>SamLarsen</dc:creator>
      <dc:date>2012-08-21T07:47:07Z</dc:date>
    </item>
  </channel>
</rss>

