GMMap AfterPageLoaded Endless Loop

天大地大妈咪最大 提交于 2019-12-02 12:49:56

I've had the same issue, but it seems that it is solved now!It happened at users who had IE 8 version on their machines - but I don't really know, why...

What is important though, is updating the IE to the latest version solves the problem!

Not so much of an answer, but a very similar issue and - I think - a workaround.

Again, this only affects certain machines, most have IE10 installed. My issue is not that First is never true but that it is always true.

procedure TFMain.GMMapAfterPageLoaded(Sender: TObject; First: Boolean);
begin

    if (First) and (PLCount = 0) then    // was just if First then
    begin
        GMMap.DoMap;
        BShowInfo.Enabled := True;
    end;
    Inc(PLCount);
end;

Altering GMMapAfterPageLoaded as above (initialising PLCount to 0 first) seems to give the DoMap call enough time to work properly

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