How can I check whether Google Maps is fully loaded?

后端 未结 9 1157
野性不改
野性不改 2020-11-22 13:44

I’m embedding Google Maps into my web site. Once Google Maps is loaded, I need to kick off a few JavaScript processes.

Is there a way to auto-detect when Goo

9条回答
  •  囚心锁ツ
    2020-11-22 14:20

    Where the variable map is an object of type GMap2:

        GEvent.addListener(map, "tilesloaded", function() {
          console.log("Map is fully loaded");
        });
    

提交回复
热议问题