I would like to listen to the event emitted when a surface is created. The purpose is then to load a google map inside the div contained in this surface.
var surfaceMap = new Surface({
size: [400, 400],
content: '<div id="maps"/>'
});
surfaceMap.on('**event_to_listen_to**', function() {
//My code goes there
});
But the documentation does not list such event. Does anyone have an idea? Or maybe propose a better alternative to achieve this goal?
Thanks!