afterGoogleLoad();
The afterGoogleLoad method invokes actions to be executed after loading a map with Google topobase.
To execute the example the HTML page must contain the MapChart component named map (see Example of Creating the MapChart Component). Set Google topobase for the map by executing the following script line in the browser console:
map.setType(PP.MapChartType.Google);
After executing the example Google topobase is set for the map:
Now process the Loaded event and execute operations to be executed after loading a map with Google topobase:
// Process map loading event map.Loaded.add(function (sender, args) { console.log("Map with the Google topobase is loaded"); }); // Invoke actions to be performed after loading the Google map map.afterGoogleLoad();
The Loaded event is fired after example execution. Handler of this event shows the following message to browser console:
Map with the Google topobase is loaded
See also: