Dear All,
I have a page here
http://e-response.com.my/maps/viewMapDetails.php?associateID=30
.If you click on any of the marker the info window always appear at
another marker. I have another problem where at some places I have 2
marker with same lat and long value so the other completely is not
visible how to solve on this too?
Below is part of my codes.
for(var i=0 ;i <totalScvData; i++)
{
var scvDataMarkerCurrent = scvDataDataJson.ScvData[i];
//alert("Event Alert :
"+scvDataMarkerCurrent.eventAlert);
if(scvDataMarkerCurrent.eventAlert!="")
{
var point = new
GLatLng(scvDataMarkerCurrent.lat,scvDataMarkerCurrent.long);
var marker = new GMarker(point);
GEvent.addListener(marker, "click", function()
{
var htmlString = "<font color=\"#6387A5\" size=\"1\" face=
\"Verdana, Arial, Helvetica, sans-serif\">" +
"Event :
"+scvDataMarkerCurrent.eventAlert+"<br/>"+
"Location :
"+scvDataMarkerCurrent.eventLocation+"<br/>"+
"Date & Time :
"+scvDataMarkerCurrent.dateTime+"<br/>"+
"</font>";
marker.openInfoWindowHtml(htmlString);
}
)
map.addOverlay(marker);
}
}
--
You received this message because you are subscribed to the Google Groups
"Google Maps API V2" 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.