Error 80020101 when creating map marker

I am adding a marker to a map using TWebGmaps.Markers.Add, and the following Javascript is generated

createMapMarker("52.0766932", "-0.7275183", "0", false, true, true, false, false, "" , 0 , "", "#FFFFFF", "#000000", 2, "Arial", "#000000", 12  );

On executing this I get
'Could not complete the operation due to error 80020101'

I understand that this is a Javascript formatting error.
What am I doing wrong?

Hi,


I have not been able to reproduce this issue.
Can you please make sure the marker is added after the map has finished loading? You can use the OnDownloadFinish event to determine if the map has been loaded completely.

If the problem persists, please provide a ready to run sample project that demonstrates the issue so I can further investigate this.
Please also provide the following information:
- Delphi version used
- IE browser version used

Bart Holvoet2014-12-17 07:40:44

Thank you Bart.

That fixed it.

I was using a timer to move markers on a map, without waiting for the map to finish loading.

Peter