title: Correctly importing Google Maps API into UI5 Application
body: <p>I'm having trouble determining the best way to import a third party library such as the Google Maps JavaScript API into a UI5 application. I have considered the following methods so far:</p>
  
  <ul>
  <li>Using a <code>&lt;script&gt;</code> tag in <code>index.html</code>, such as<br>
  <code>&lt;script src="https://maps.googleapis.com/maps/api/js?key=api_key"&gt;&lt;/script&gt;</code><br>
  This works when testing locally but as mentioned in <a href="https://blogs.sap.com/2017/04/30/how-to-include-third-party-libraries-modules-in-sapui5/" rel="nofollow noreferrer">this</a> SAP blog post, an app that is launched from the SAP Fiori Launchpad launches via the <code>Component.js</code>, not the <code>index.html</code></li>
  <li>That same blog post mentions importing a library via <code>sap.ui.define</code>, which is in fact what I'm doing with <code>moment.js</code> already in the application, which works. The problem is that the Google Maps API does not expose a global instance name / does not consist of a single JS file which can be imported, and thus this import fails. A <a href="https://stackoverflow.com/questions/44444542/loading-third-party-modules-into-ui5-without-access-to-a-global-instance-name">similar question</a> was asked in June last year but did not get answered.</li>
  <li>A comment on that same question mentions using <code>require.js</code> to import the Google Maps API. This will likely work but seems like a hack. It feels like there should be some UI5-specific way to do this without having to import yet another third-party library.</li>
  <li>Finally, <a href="https://blogs.sap.com/2017/01/06/integrate-google-map-with-sapui5-application/" rel="nofollow noreferrer">this</a> SAP blog post suggests manually creating and appending the Google Maps import <code>&lt;script&gt;</code> tag into the DOM once the window has loaded. This also seems like a hack but might be the only way to achieve this for the time being.</li>
  </ul>
  
  <p>Any help determining the correct method of achieving this would be appreciated!</p>