Uncaught RangeError: Maximum call stack size exceeded Google maps when I try to set bounds

后端 未结 5 610
逝去的感伤
逝去的感伤 2020-12-05 09:15

I created a working google map that I am now trying to have auto zoom out so all the points fit.

When I added:

var bounds = new google.maps.LatLngBo         


        
5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-05 10:05

    Possible scenarios

    • Either map.fitBounds(bounds); is not receiving latitude/longitude or both.
    • The received values of latitude/longitude are not in correct format(NaN).

提交回复
热议问题