Google 地图应用程序:在 Google 驱动器上托管 .js 文件

Google Maps App: Hosting .js Files on Google Drive

我找到了一些较旧的链接,其中包含在 Google 驱动器上托管 .js 文件的提示。似乎正确的方法随着时间的推移而改变了;我无法让我的 Google 地图应用在托管时看到所需的参考资料。当 .js 文件是本地文件时,地图应用程序工作正常。

猜的很简单,只要知道正确的做法就可以了

这是我所在的位置:

1.  Created a shared folder on Google Drive
2.  Uploaded, then shared the 2 .js files
3.  Grabbed the shared file link and inserted into the reference, example:
    Replaced:  <script type="text/javascript" src="labels.js"></script>
    With:  <script type="text/javascript" src="https://drive.google.com/open?id=<my id here></script>
No luck
4.  I tried using just the shared folder ID, and appended the "/labels.js" filename
Also No luck

对完成这个任务有什么建议吗?

谢谢

经过更多的探索和朋友的帮助,以下表格似乎可以工作:

<script type="text/javascript" src="https://drive.google.com/uc?export=download&id="my_doc_id"</script>