我有一个应用程序使用最新版本的GMLIB (v1.5.3)。从今天开始,当我在地图上放置一个对象时,地图会生成上面的通用错误。我的应用程序没有更改。我还测试了提供的GMLIB,在启动MegaDemo时生成了相同的错误-以前没有错误。我正在使用XE7并安装了IE11。
似乎几年前也发生过同样的错误,Catedill发布了一个更新来修复。
下面是我在发生错误时传递的函数和参数:
'MakeMarker‘'2,false,false,true,false,false,true,35.7519302368164,-121.285972595215,true,’001:样本‘’,true,‘,false,0,0,true,''mtStyledMarker'',''siBubble'',''#0000FF'',''#FFFFFF'',’‘#00FFF00’‘,false,false,true’
还有没有人刚开始发现这个错误?
发布于 2016-05-12 22:26:31
好吧,我已经做了一个解决方案。我找到了StyledMarker.js,并已将其上传到GitHub GMLib存储库。
现在,您只需执行以下更改:
http://google-maps-utility-library-v3.googlecode.com/svn/trunk/styledmarker/src/StyledMarker.js
通过另一种方式:
https://cdn.rawgit.com/googlemaps/v3-utility-library/master/styledmarker/src/StyledMarker.js
或
https://cdn.rawgit.com/cadetill/gmlib_v1/master/Resources/StyledMarker.js
执行.\resources\rc.cmd
另一种选择是从GitHub repository下载更改。
有关问题here的更多信息。
对于给您带来的不便,深表敬意和歉意。
发布于 2016-05-13 06:49:27
与其使用您自己的谷歌实用程序脚本的开发副本,我建议您将.\resources\map.html中的url从:
http://google-maps-utility-library-v3.googlecode.com/svn/trunk/styledmarker/src/StyledMarker.js源库的以下cdn前缀版本:
https://cdn.rawgit.com/googlemaps/v3-utility-library/master/styledmarker/src/StyledMarker.js在生产环境中,您确实应该使用脚本的cdn版本,因为它具有no traffic limits or throttling and the files are served via a super fast global CDN。然而,请记住,作为一项免费服务,它提供no uptime or support guarantees。
访问从Git托管的文件在下面的SO答案中有更详细的介绍:
Link and execute external JavaScript file hosted on GitHub
如果你仍然喜欢使用你自己的拷贝,出于同样的原因,我建议使用你的cdn拷贝:
https://cdn.rawgit.com/cadetill/gmlib_v1/master/Resources/StyledMarker.jshttps://stackoverflow.com/questions/37175704
复制相似问题