Forum Discussion
vincent_1234
Helper I
9 years agoIssue with external library
Dear all, I'm converting my visual to the API v.1.2.0 and was happy to see "externalJS" files are now supported. I've implemented this and I see the code of these third party files when debuggin...
v-chuncz-msft
Community Support
9 years ago
Based on my test, you could add the library by using tsconfig.json file. See https://github.com/Microsoft/PowerBI-visuals/blob/master/Tutorial/ExternalLibraries.md.
vincent_1234
Helper I
9 years agoI was able to use the library using window.L (and not just L)
This is strange because outside Power BI it is without the window prefix, just like the $ for jQuery
- v-chuncz-msft9 years ago
Community Support
- vincent_12349 years ago
Helper I
I'm not sure I understand your question.
When adding the external libs to the tsconfig, the code is initialized just before mine and are accessible through the window object
- v-chuncz-msft9 years ago
Community Support
Where do you use Leaflet? Could you please post the related code snippet here, as well as some screenshots?