File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -240,6 +240,7 @@ public function toJs($map_js_name = 'map')
240240 $ return = '' ;
241241 if ($ this ->info_window instanceof GMapInfoWindow)
242242 {
243+ $ this ->addEvent (new GMapEvent ('click ' ,$ this ->info_window ->getName ().".open( " .$ map_js_name .", " .$ this ->getName ()."); " ));
243244 $ return .= $ this ->info_window ->toJs ();
244245 }
245246 $ return .= $ this ->getName ().' = new google.maps.Marker( ' .$ this ->optionsToJs ()."); \n" ;
@@ -277,7 +278,6 @@ public function addEvent($event)
277278 public function addHtmlInfoWindow (GMapInfoWindow $ info_window )
278279 {
279280 $ this ->info_window = $ info_window ;
280- $ this ->addEvent (new GMapEvent ('click ' ,$ this ->info_window ->getName ().".open( " .$ map_js_name .", " .$ this ->getName ()."); " ));
281281 }
282282
283283 /**
You can’t perform that action at this time.
0 commit comments