Hi,
I have a problem where I have two address with two different value
windows that I want to appear on the same map. Currently I'm trying to
move one of the markers 0.005 (x-coordinate) over so that both can be
visible. I have a set of addresses which I pass into the following
function which attempts to add an overlay to the map. Everything works
except for the two markers of the same point. Both of the markers are
still overlapped on one another allowing the user to click on only one
of them. Any suggestions?
function addMarkers(address,index)
{
if (geocoder)
{
geocoder.getLatLng( address,
function(point)
{
var indexH = indexPoint++;
if (!point)
{
alert(address + " not found");
}
else
{
markerOptions = { icon:
getIcon(indexH)};
if (checkPoints(point, indexH))
{
newpoint = new GPoint(point.x +
0.005, point.y);
var marker = new
GMarker(newpoint, markerOptions);
}
else
{
var marker = new GMarker(point,
markerOptions);
}
map.addOverlay(marker);
var string = TABLEINFO[
GEvent.addListener(marker, "click",
function()
{
marker.openInfoWindowHtml(TABLEINFO[indexH]);
});
}
}
);
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---