/** * GMapInfoWindow sample * * @author Vincent Guillon <*****@*****.**> * @since 2009-10-02 17:16:44 */ public function executeSample3() { // Initialize the google map $gMap = new GMap(); $gMap->setZoom(13); $gMap->setCenter(-12.461334, 130.841904); // Create GMapInfoWindow $info_window = new GMapInfoWindow('<div>Your HTML content here !</div>'); // Create marker $marker = new GMapMarker(-12.461334, 130.841904, array('title' => '"Darwin"')); $marker->addHtmlInfoWindow($info_window); $gMap->addMarker($marker); $this->gMap = $gMap; $this->setTemplate('sample1'); // END OF ACTION $this->message = 'Simple GMapInfoWindow : click marker to open info window'; $this->action_source = $this->functionToString('executeSample3'); }