2amigos / egmap

Objet-oriented PHP abstraction to the Google Maps API to ease the process of adding a Google Map on your Yii projects.
14 stars 12 forks source link

Customizing map loading process #7

Open aleoy opened 10 years ago

aleoy commented 10 years ago

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 ?

tonydspaniard commented 10 years ago

relates to #7