GMLib Could not complete the operation due to error 80020101 (v1.5.3)

百般思念 提交于 2019-12-12 05:37:59

问题


I have an application using the latest version (v1.5.3) of GMLIB. Starting today, the map now generates the above generic error when I place an object on the map. My application has not changed. I also tested the GMLIB MegaDemo that was provided and the same error is generated when starting the map - previously there was no error. I am using XE7 and have IE11 installed.

It appears the same error occurred several years ago and Catedill released an update to fix.

Below is the function and parameter I pass when the error occurs:

'MakeMarker' '2,false,false,true,false,false,true,35.7519302368164,-121.285972595215,true,''001: SAMPLE'',true,'''',0,'''',false,0,0,0,true,''mtStyledMarker'',''siBubble'',''#0000FF'',''#FFFFFF'',''#00FF00'',false,false,true'

Anyone else just start getting this error?


回答1:


Well, I have made a solution. I have found StyledMarker.js and I have uploaded it into the GitHub GMLib repository.

Now, you only need to do this changes:

  • Into .\resources\map.html file replace this url:

http://google-maps-utility-library-v3.googlecode.com/svn/trunk/styledmarker/src/StyledMarker.js

by this other:

https://cdn.rawgit.com/googlemaps/v3-utility-library/master/styledmarker/src/StyledMarker.js

or

https://cdn.rawgit.com/cadetill/gmlib_v1/master/Resources/StyledMarker.js

  • Recreate resource file executing .\resources\rc.cmd
  • Build (no compile) all GMLib

Another option is download changes from GitHub repository.

More info about the problem here.

Regards and sorry for the inconvenience.




回答2:


Rather than using your own development copy of the Google utility script, I'd recommend changing the url in your .\resources\map.html from:

http://google-maps-utility-library-v3.googlecode.com/svn/trunk/styledmarker/src/StyledMarker.js

to the following cdn prefixed version of the source library:

https://cdn.rawgit.com/googlemaps/v3-utility-library/master/styledmarker/src/StyledMarker.js

In production, you really should be using the cdn version of the script as it has no traffic limits or throttling and the files are served via a super fast global CDN. However please bear in mind that, as a free service, it offers no uptime or support guarantees.

Accessing files hosted from Git is covered in more detail in the following SO answer:

Link and execute external JavaScript file hosted on GitHub

If you'd still prefer to use your own copy, for the same reasons I'd suggest using your cdn copy:

https://cdn.rawgit.com/cadetill/gmlib_v1/master/Resources/StyledMarker.js


来源:https://stackoverflow.com/questions/37175704/gmlib-could-not-complete-the-operation-due-to-error-80020101-v1-5-3

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