Chris Fox
Chris Fox

Reputation: 21

Script errors when loading maps

As of today, the delphi component has been returning script errors when trying to load the map. We have not changed any code in the application or component. Have Google changed something in their API? If so, is there a new version of the component to deal with this? Thanks, Chris

Upvotes: 1

Views: 839

Answers (3)

Mustafa Simsek
Mustafa Simsek

Reputation: 1

You could use old api like this :

just add "v=3&"

Upvotes: 0

Chris Fox
Chris Fox

Reputation: 21

Found a resolution to this via Google Maps API v3.19 Broken in Internet Explorer Quirks Mode

Within the resource files of the GMLib component we found a map.html file. We added the following line to the section of the html file.

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

We then recompiled the resource files into the component, recompiled the delphi project and it worked.

I suppose this is one of the downsides of using relatively unsupported free components.

We are now considering moving to a commercial paid for google maps component to reduce the risk of this happening again.

Upvotes: 0

Elliveny
Elliveny

Reputation: 2203

See my question Google Maps API v3.19 Broken in Internet Explorer Quirks Mode

I suspect you have the same issue - note the comment 'This worked in my case, which was an embedded TWebBrowser inside of a Delphi project' from the user FLDelphi

Upvotes: 2

Related Questions