<?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 Create custom visual using mapbox-gl in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Create-custom-visual-using-mapbox-gl/m-p/2408140#M35095</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone experienced including mapbox-gl on a custom visual and using Satellite View? The satellite imagery is not loading.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created my custom visual using mapbox-gl. I installed mapbox-gl from npm.&lt;/P&gt;&lt;P&gt;At first, I was getting a transpiling issue. I added "!" to exclude it from transpiling (according to mapbox troubleshooting). Then It worked ok. Although, I'm getting the "&lt;EM&gt;Failed to read the 'caches' property from Window: Cache storage is disabled because the context is sandbox and lacks the 'allow-same-origin' flag&lt;/EM&gt;". I just ignored the error because the map was loading fine.&lt;/P&gt;&lt;P&gt;But when I tried to use satellite view, I'm only getting a black, without the satellite imagery. Is it because of the 'allow-same-origin flag' error? I've also wrote a support ticket with mapbox and hoping they will reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Mar 2022 03:22:09 GMT</pubDate>
    <dc:creator>jii2021</dc:creator>
    <dc:date>2022-03-22T03:22:09Z</dc:date>
    <item>
      <title>Create custom visual using mapbox-gl</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Create-custom-visual-using-mapbox-gl/m-p/2408140#M35095</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone experienced including mapbox-gl on a custom visual and using Satellite View? The satellite imagery is not loading.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created my custom visual using mapbox-gl. I installed mapbox-gl from npm.&lt;/P&gt;&lt;P&gt;At first, I was getting a transpiling issue. I added "!" to exclude it from transpiling (according to mapbox troubleshooting). Then It worked ok. Although, I'm getting the "&lt;EM&gt;Failed to read the 'caches' property from Window: Cache storage is disabled because the context is sandbox and lacks the 'allow-same-origin' flag&lt;/EM&gt;". I just ignored the error because the map was loading fine.&lt;/P&gt;&lt;P&gt;But when I tried to use satellite view, I'm only getting a black, without the satellite imagery. Is it because of the 'allow-same-origin flag' error? I've also wrote a support ticket with mapbox and hoping they will reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 03:22:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Create-custom-visual-using-mapbox-gl/m-p/2408140#M35095</guid>
      <dc:creator>jii2021</dc:creator>
      <dc:date>2022-03-22T03:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom visual using mapbox-gl</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Create-custom-visual-using-mapbox-gl/m-p/2408194#M35096</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/343157"&gt;@jii2021&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;If mapbox-gl requires the &lt;FONT face="courier new,courier"&gt;allow-same-origin-flag&lt;/FONT&gt;, then unfortunately this is not possible from within a custom visual. and is highly likely why you're just seeing the black display. All custom visuals are executed within a sandboxed iframe and this flag is set by MS to prevent scripts from accessing the main window.&amp;nbsp; &lt;A href="https://www.html-content.com/reference/limitations#custom-visuals-high-level" target="_self"&gt;I have a page for one of my visuals that explains in a bit more detail&lt;/A&gt;, which may help clarify the limitation further. Unless Mapbox have a suitable workaround from their end to avoid the CORS restrictions imposed by Power BI, then this is not solvable via custom visuals.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 04:32:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Create-custom-visual-using-mapbox-gl/m-p/2408194#M35096</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2022-03-22T04:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom visual using mapbox-gl</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Create-custom-visual-using-mapbox-gl/m-p/2408304#M35097</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/397"&gt;@dm-p&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the clarification and nice documentation about the limitations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 05:37:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Create-custom-visual-using-mapbox-gl/m-p/2408304#M35097</guid>
      <dc:creator>jii2021</dc:creator>
      <dc:date>2022-03-22T05:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create custom visual using mapbox-gl</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Create-custom-visual-using-mapbox-gl/m-p/4107586#M54848</link>
      <description>&lt;P&gt;I can see videos online of Mapbox Satellite base map being used in Power BI.&amp;nbsp; I am assuming there must be some other setting that is being missed.&amp;nbsp; Any insight into how to troubleshoot that would throw that error?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2024 19:29:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Create-custom-visual-using-mapbox-gl/m-p/4107586#M54848</guid>
      <dc:creator>NUCRjs2</dc:creator>
      <dc:date>2024-08-19T19:29:01Z</dc:date>
    </item>
  </channel>
</rss>

