Im using map.addOverlay(marker); for the large marker. there are two types here.
map.addOverlay(new GMarker(point, markerOptions));
creates the small markers and is working. except that my link is being added to the large marker and not the small ones.
also I can't add the php variable directly to the location because that would send all of the clicks to the same place. I need to know how to add the location variable to the marker in my loop. so that each marker has a unique link.
Main Topics
Browse All Topics





by: sh0ePosted on 2008-10-18 at 17:46:37ID: 22750406
You create new Gmarker for each neighbor, to which the click event is not binded.
_locations .php?loc_i d=<?php echo $loc_id ?>";
36: map.addOverlay(new GMarker(point, markerOptions));
should be
map.addOverlay(marker);
If you need markerOptions, you will need to modify your createMarker function.
The location should look something like this:
window.location.href="wiki