我正在尝试使用mocha测试我的react应用程序。我在我的应用程序中使用googlemapsapi。当我运行我的mocha测试时,我得到一个错误"ReferenceError: google is not defined“。在我的应用程序中,我可以使用API,因为我在我的html中包含了以下脚本标记。
<script src="https://maps.googleapis.com&
function initialize() { center: new google.maps.LatLng(45.4555729, 9.169236google.maps.Map(document.getElementById("mapCanvas"),
var Item_1 = new google.maps.LatLnggoogle.m
我正在使用,目前我正在尝试创建一个LatLngBounds对象,以便根据数组中的位置将它应用到我的谷歌地图中。我正在寻找西南和东北两个点,从它们创建LatLng对象,然后尝试使用它们来创建LatLangBounds对象: var lowestLatitudecarry : nextLocation.position.lng; var southWest = new google.maps</em