<?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: Custom Leaflet R visual - Map Not Loading in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Leaflet-R-visual-Map-Not-Loading/m-p/3792647#M50998</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/311938"&gt;@PowerbiGuest23&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have much experience with the R side of things, but have you updated your &lt;FONT face="courier new,courier"&gt;capabilities.json&lt;/FONT&gt; to include &lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/capabilities#define-privileges" target="_self"&gt;privileges&lt;/A&gt; that allow &lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/capabilities#allow-web-access" target="_self"&gt;web access&lt;/A&gt;? Normally, the visual host will block any external URLs if these are not set. You can usually confirm this by the presence of an error in the developer console in your browser when debugging. If you add in a suitable domain used by Leaflet for the &lt;FONT face="courier new,courier"&gt;parameters&lt;/FONT&gt; array, this should hopefully work for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hopefully some of this may point you in the right direction &lt;span class="lia-unicode-emoji" title=":crossed_fingers:"&gt;🤞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel&lt;BR /&gt;&lt;BR /&gt;, so I presume that if you enable the domain that leaflet uses for its maps then you&lt;/P&gt;</description>
    <pubDate>Wed, 27 Mar 2024 02:35:29 GMT</pubDate>
    <dc:creator>dm-p</dc:creator>
    <dc:date>2024-03-27T02:35:29Z</dc:date>
    <item>
      <title>Custom Leaflet R visual - Map Not Loading</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Leaflet-R-visual-Map-Not-Loading/m-p/3792635#M50997</link>
      <description>&lt;P&gt;I'm stuck on successfully creating a custom visual using R and Leaflet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My R code works fine in RStudio, and in PowerBI, I can plot my markers, but I can't figure out how to the the map (addProviderTiles) to render in PowerBI.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Here are the steps I am taking:&lt;/P&gt;&lt;P&gt;1) pbiviz new &amp;lt;visual name&amp;gt; -t rhtml&lt;/P&gt;&lt;P&gt;2) cd &amp;lt;path&amp;gt;\&amp;lt;visual name&amp;gt;&lt;/P&gt;&lt;P&gt;3) npm install leaflet&lt;/P&gt;&lt;P&gt;4) npm install @types/leaflet --save&lt;/P&gt;&lt;P&gt;5) Update the pbiviz.json file for the following fields: email, name, description, gitHubUrl, supportUrl&lt;/P&gt;&lt;P&gt;6) Import/update script.r file&lt;BR /&gt;6) run pbiviz package&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After importing the visual into PowerBI (see below), it plots the data points with a radius circle, but the map is not rendering. I've tried different provider tiles in my R code, but to no avail.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone point me in the right direction? The tuturials I've found online are dated and following the same steps results in pbiviz package compilation errors.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PowerbiGuest23_0-1711505889926.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1067412i758F51323965FA7F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PowerbiGuest23_0-1711505889926.png" alt="PowerbiGuest23_0-1711505889926.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 02:23:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Leaflet-R-visual-Map-Not-Loading/m-p/3792635#M50997</guid>
      <dc:creator>PowerbiGuest23</dc:creator>
      <dc:date>2024-03-27T02:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Leaflet R visual - Map Not Loading</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Leaflet-R-visual-Map-Not-Loading/m-p/3792647#M50998</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/311938"&gt;@PowerbiGuest23&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have much experience with the R side of things, but have you updated your &lt;FONT face="courier new,courier"&gt;capabilities.json&lt;/FONT&gt; to include &lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/capabilities#define-privileges" target="_self"&gt;privileges&lt;/A&gt; that allow &lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/capabilities#allow-web-access" target="_self"&gt;web access&lt;/A&gt;? Normally, the visual host will block any external URLs if these are not set. You can usually confirm this by the presence of an error in the developer console in your browser when debugging. If you add in a suitable domain used by Leaflet for the &lt;FONT face="courier new,courier"&gt;parameters&lt;/FONT&gt; array, this should hopefully work for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hopefully some of this may point you in the right direction &lt;span class="lia-unicode-emoji" title=":crossed_fingers:"&gt;🤞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Daniel&lt;BR /&gt;&lt;BR /&gt;, so I presume that if you enable the domain that leaflet uses for its maps then you&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 02:35:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Leaflet-R-visual-Map-Not-Loading/m-p/3792647#M50998</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2024-03-27T02:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Leaflet R visual - Map Not Loading</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Leaflet-R-visual-Map-Not-Loading/m-p/3966046#M53005</link>
      <description>&lt;P&gt;Thanks for the input, but I tried granting web access to multiple versions of the map url with no luck. I'm starting to think you can't use leaflet through R in PowerBI custom visuals...&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jun 2024 17:10:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Leaflet-R-visual-Map-Not-Loading/m-p/3966046#M53005</guid>
      <dc:creator>PowerbiGuest23</dc:creator>
      <dc:date>2024-06-01T17:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Leaflet R visual - Map Not Loading</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-Leaflet-R-visual-Map-Not-Loading/m-p/4053568#M54270</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Good morning, I am trying to create a map with power bi r script, I cannot use shiny and I cannot use leaflet either, can you recommend some option to represent a polygon map from the R script, it has to be interactive?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2024 09:07:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-Leaflet-R-visual-Map-Not-Loading/m-p/4053568#M54270</guid>
      <dc:creator>jaimeroncero</dc:creator>
      <dc:date>2024-07-22T09:07:15Z</dc:date>
    </item>
  </channel>
</rss>

