Hey there, I'm currently working on integrating the Mapwize SDK, an external Javascript library, with the latest version of Ionic. I've encountered the common challenge of getting Javascript to function smoothly with Typescript. Although I'm new to front-end development, I've attempted to find solutions by reviewing various responses and questions, but unfortunately, they lack in-depth explanations. I am really eager for a comprehensive guide on how to effectively utilize Mapwize with Ionic.
While I can successfully call functions from a test Javascript file within my .ts files, my ultimate goal is to interact with the JS library in a manner similar to using script tags in my HTML file. Some have suggested handling all logic in the .ts file, but fail to clarify this process. It's worth noting that the Mapwize SDK is in IIFE format and is self-invoking, which has hindered my access to functions in the .js file. You can find the SDK at https://github.com/Mapwize/mapwize.js-dist
If anyone has successfully tackled this integration challenge, I would greatly appreciate your assistance!
Tools in use: Atom IDE Ionic 4 Angular and Typescript