2amigos/egmap — pull request #8 by aleoy (2014-01-26 16:19:50+00:00)
Title: support for custom render object listener and associated rendering event

How about enabling some customization on how and what triggers the map to be rendered In class EGMap line 545 we see the render triggering process.

google.maps.event.addDomListener(window, "load",' . PHP_EOL . $this->_containerId . '_init);' . PHP_EOL;

What if the DOM object (in this case window) and the event (load) could be overriden

In this solution the renderMap method has 2 additional optional arguments $element and $event

Now if I need to render a map only after some form fiels have been selected / filled in .... that is possible