javascript 谷歌MapAPI -Map不显示在浏览器中[已关闭]

uinbv5nw  于 2023-01-04  发布在  Java
关注(0)|答案(1)|浏览(107)

**已关闭。**此问题需要debugging details。当前不接受答案。

编辑问题以包含desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem。这将有助于其他人回答问题。
2天前关闭。
Improve this question
我有一个问题,显示Map使用javascript沿着谷歌Map的API,该项目已设置和API的关键工程,这是代码,如果有人可以帮助请
期望Map显示在浏览器上,但未显示任何内容

vq8itlhq

vq8itlhq1#

Google Maps JS API调用window.initMap(如果您在脚本href中指定callback=initMap作为搜索参数),而不是直接调用initMap
按照GoogleMapJavaScript API概述中的示例,您应追加

window.initMap = initMap;

相关问题