Dear rossko,
Thanks a lot for ur reply...

I have a list of some points (GLatlng) and user selects one of them. The
logic you mentioned is very good. But I dont think I can integrate it in my
code as I have not kept any sort of index to the markers. I am simply
putting the markers one by one and I am associating the infowindow to each.

I am giving the code snippet.


ArrayList locList = new ArrayList();

for (int i = 0; i < (NUMBER OF INPUTS); i++)

{

locList.Add(new GLatLng(Convert.ToDouble(xxx),

Convert.ToDouble(yyy));

GMarker marker = new GMarker((GLatLng)locList[i]);

googleMap.addGMarker(marker);

GInfoWindow infowindow = new GInfoWindow(marker, "zzz", false, GListener.
Event.click);

googleMap.addInfoWindow(infowindow);

}

I think I need to change this logic. Can u please explain the logic in terms
of code as I am new to ASP.net?

Thanks a lot....

On Tue, Jul 27, 2010 at 3:03 PM, Rossko <[email protected]> wrote:

> > So I need check whether a marker is already present at particular
> > GlatLng. If it is present I want append some data on info window of
> > that particular marker.
>
> First define how close two markers need to be for them to be at the
> 'same place' ... 10cm? 1km?
>
> When adding a new marker, cycle through the existing markers
> calculating distance.  If one is less than distance 'X', combine them.
>
> A lot of this work could be done for you if one of the clustering
> solutions is suited to your needs, but these are more about visual
> overlapping on the map rather than some physical nearness.
>
> One way to have the infowindow content extendable, would be to keep
> the content in an array linked to markers by index.  Marker click
> listener would retrieve content from the array and use it build the
> infowindow.  Then, when combining markers, you need only extend the
> array content.
>
> --
> 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]<google-maps-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-api?hl=en.
>
>


-- 
with regards,

Rhishikesh R. Savadikar.
+91 9890378800.

-- 
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.

Reply via email to