Google Maps library for Delphi suddenly stopped wo

2019-07-27 07:43发布

问题:

I'm using this library for using google maps with delphi: GMLib

This has worked fine for several months, but today when I started my application I got a lot of script errors on the page and everything broke down!

After troubleshooting all day I have concluded that this is outside of my control. To demonstrate this you only need to build & run the demo project as it demonstrate the exact same problem (loads of script errors).

The only reasonable explanation is that the js files that the library loads from the Internet has changed. However this is very hard to pinpoint.

I'm hoping the developer of the library sees this as I'm completely lost on how to even start adressing this.

回答1:

base on this article Google Maps JS API (v3) InfoWindow Script Error - JSON Undefined

Delphi's solution step is

  1. modify map.html
  2. rebuild gmmapres.rc(use brcc32.exe)
  3. rebuild GMLib_DXE5.dproj
  4. rebuild your project


回答2:

You can download the newest version 1.5.4 from 1.5.4