I'm trying to display several markers on a map and when you click on
the marker you get more info in the info window box.
Here is my code:
// INITIALIZE GOOGLE MAP
$gMap = new GMap();
$gMap->setWidth(533);
$gMap->setHeight(268);
foreach($objects as $object){
$info = new GMapInfoWindow('Specific Info goes here for'.);
$marker = new GMapMarker($object->getLatitude(), $object->getLongitude
());
$marker->addHtmlInfoWindow($info);
$gMap->addMarker($marker);
$gMap->centerAndZoomOnMarkers(.3);
}
$this->gMap = $gMap;
Then in the template I display the map with:
<?php include_map($gMap);?>
The map works fine and the markers display, but only one info window
is displayed. If I click on the marker that isn't displaying the info
window, the map centers on the other marker and displays its info
window. I need to display an info window for each marker.
I'm not sure what I am doing wrong.
You can see my demo site here to see what I'm talking about:
http://bit.ly/b7KfET
Thanks in advance for your help.
Zach
--
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en.