For a current project, we need to know when a Google map is done loading all of its tiles. I found the following question, which was for the same basic problem: register event "loadend" on layer
So now, we're using the code from that answer:
GEvent.addListener(mGoogleHybridLayer.mapObject, "tilesloaded", function() {
console.log("Tiles loaded");
});
However, this gives a reference error for GEvent. Are there some extra requirements for using GEvent? Do we need to import it from somewhere?
I can't post code we're using, because there isn't any yet - even in the browser's debug console, GEvent is undefined.
Using Openlayers 2.11.
EDIT: maybe I should restate the question into one that can actually be answered: what are all the requirements for being able to use GEvent?