GMLib Could not complete the operation due to erro

2019-09-05 23:19发布

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?

2条回答
够拽才男人
2楼-- · 2019-09-05 23:56

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
查看更多
看我几分像从前
3楼-- · 2019-09-06 00:04

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.

查看更多
登录 后发表回答