Skip to content

Commit c47a14f

Browse files
author
Fabrice Bernhard
committed
[sfEasyGMapPlugin] info window event
1 parent 2a4bfbc commit c47a14f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/GMapMarker.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)