Dear Lary,
Ok I manage to solve it by creating a function to manage the
markers. So how about my next problem 2 marker on the same lat and long. My
link is the same
http://e-response.com.my/maps/viewMapDetails.php?associateID=30.
On Mon, Oct 10, 2011 at 1:37 AM, [email protected]
<[email protected]>wrote:
> On Oct 9, 1:21 pm, ss <[email protected]> wrote:
> > Dear All,
> > I have a page herehttp://
> 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.
>
> See pitfall #3 on this page of Mike Williams' tutorial:
> http://econym.org.uk/gmap/basic1.htm
>
> -- Larry
>
> > 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.
>
>
--
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.