<?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 Issue with external library in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Issue-with-external-library/m-p/87826#M3105</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm converting my visual to the API v.1.2.0 and was happy to see "externalJS" files are now supported.&lt;/P&gt;&lt;P&gt;I've implemented this and I see the code of these third party files when debugging.&lt;/P&gt;&lt;P&gt;The strange thing is, jQuery ($)&amp;nbsp;does work in my visual, however Leaflet (L) is undefined from within my code, but actually is declared (lib initialization code is invoked). Somehow PowerBI seems to clear these globals.&lt;/P&gt;&lt;P&gt;How do I solve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With kind regards&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2016 09:54:37 GMT</pubDate>
    <dc:creator>vincent_1234</dc:creator>
    <dc:date>2016-11-11T09:54:37Z</dc:date>
    <item>
      <title>Issue with external library</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issue-with-external-library/m-p/87826#M3105</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm converting my visual to the API v.1.2.0 and was happy to see "externalJS" files are now supported.&lt;/P&gt;&lt;P&gt;I've implemented this and I see the code of these third party files when debugging.&lt;/P&gt;&lt;P&gt;The strange thing is, jQuery ($)&amp;nbsp;does work in my visual, however Leaflet (L) is undefined from within my code, but actually is declared (lib initialization code is invoked). Somehow PowerBI seems to clear these globals.&lt;/P&gt;&lt;P&gt;How do I solve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With kind regards&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 09:54:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issue-with-external-library/m-p/87826#M3105</guid>
      <dc:creator>vincent_1234</dc:creator>
      <dc:date>2016-11-11T09:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with external library</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issue-with-external-library/m-p/88799#M3150</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/8877"&gt;@vincent_1234﻿&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on my test, you could&amp;nbsp;add the library by using&amp;nbsp;tsconfig.json file. See &lt;A href="https://github.com/Microsoft/PowerBI-visuals/blob/master/Tutorial/ExternalLibraries.md" target="_blank"&gt;https://github.com/Microsoft/PowerBI-visuals/blob/master/Tutorial/ExternalLibraries.md&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 09:51:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issue-with-external-library/m-p/88799#M3150</guid>
      <dc:creator>v-chuncz-msft</dc:creator>
      <dc:date>2016-11-11T09:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with external library</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issue-with-external-library/m-p/88801#M3151</link>
      <description>&lt;P&gt;I was able to use the library using window.L (and not just L)&lt;/P&gt;&lt;P&gt;This is strange because outside Power BI it is without the window prefix, just like the $ for jQuery&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2016 09:53:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issue-with-external-library/m-p/88801#M3151</guid>
      <dc:creator>vincent_1234</dc:creator>
      <dc:date>2016-11-11T09:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with external library</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issue-with-external-library/m-p/89385#M3177</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/8877"&gt;@vincent_1234﻿&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do you implement the constructor method?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 10:50:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issue-with-external-library/m-p/89385#M3177</guid>
      <dc:creator>v-chuncz-msft</dc:creator>
      <dc:date>2016-11-14T10:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with external library</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issue-with-external-library/m-p/89432#M3182</link>
      <description>&lt;P&gt;I'm not sure I understand your question.&lt;/P&gt;&lt;P&gt;When adding the external libs to the tsconfig, the code is initialized just before mine and are accessible through the window object&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 14:05:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issue-with-external-library/m-p/89432#M3182</guid>
      <dc:creator>vincent_1234</dc:creator>
      <dc:date>2016-11-14T14:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with external library</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Issue-with-external-library/m-p/89819#M3192</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/8877"&gt;@vincent_1234﻿&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where do you use Leaflet? Could you please post the related code snippet here, as well as some screenshots?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 11:03:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Issue-with-external-library/m-p/89819#M3192</guid>
      <dc:creator>v-chuncz-msft</dc:creator>
      <dc:date>2016-11-15T11:03:50Z</dc:date>
    </item>
  </channel>
</rss>

