Forum Discussion

vincent_1234's avatar
vincent_1234
Helper I
9 years ago

Issue 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 debugging.

The strange thing is, jQuery ($) 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.

How do I solve this?

 

With kind regards

5 Replies