Google Maps JS API (v3) InfoWindow Script Error - JSON Undefined

人走茶凉 提交于 2019-11-30 19:46:34

I'm with the same error here. I'm using Google Maps JS in WPF WebBrowser and 3 days ago was running perfectly. Today with the same source code I got that same error. Set the version of the Google Maps JS to 3.17 (src="http://maps.google.com/maps/api/js?v=3.17"). I did this:

<script type="text/javascript"
        src="http://maps.google.com/maps/api/js?v=3.17&sensor=false"/>

For more information check Google Documentation.

I encountered the same problem with VBA for Access. It works if I open the webpage in IE, Chrome, etc. but not within the VBA WebBrowser (Shell.Explorer.2 class). I'm inclinced to believe it's a Google bug. I found it extra weird because the error message references a line in my code which doesn't have that many lines.

To work around it for now, I forced v=3.17 for the API. Obviously it will only work as long as 3.17 is around.

I also observed same error. I am using Google Map API V3 in java script. you can use V=3 to avoid particular version restriction. using V=3 always produces latest release version.

Example "https://maps.googleapis.com/maps/api/js?v=3&sensor=false"

for refrence -Google Map API V3 Version Documentation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!