i’m trying to use IvoryGoogleMap to display a simple map with markers and infoWindows using this code:
$marker ->setPosition($place->getLat(), $place->getLng());
$infoWindow ->setContent('<p>Default content</p>');
$marker ->setInfoWindow($infoWindow);
$map ->addMarker($marker);
and all i’m getting is a map with marker(s) but when i click on one of them, nothing happens. Have you any idea what am i doing wrong ?
Ok, problem solved. Here is the solution from bundle’s author egeloen (on github):
======================================================================
This functionality doesn’t exist natively. If you want to open an info window with a click event on a marker, you need to use the
ivory_google_map.eventservice. This service allow you to generate all events you want.In your case, the event is :