On Oct 30, 2:10 pm, Maria1999 <[EMAIL PROTECTED]> wrote:
> Hi,
>
> >  The easiest algorithm is called "gift wrap"
> >  http://en.wikipedia.org/wiki/Gift_wrapping_algorithm
>
> This is exactly what i want.
>
> > Do you want to use the coordinates of the markers?
>
> Yes i want to use the coordinates of the markers?
>
> > Push them into an array (as GLatLngs), use that array to create the polygon.
>
> This is not the right solution. When i use an array the polygone will
> be
> not usefull and "nice".
> I think first i must find the the points with the longest distance
> from
> center and then draw the polygone without the other ones.
>
> But i have no idea how to do that  :-))
>
> The "Gift_wrapping_algorithm " from wiki in a example were great!!

Here is an example of the convex hull applied to a random set of
markers:
http://www.geocodezip.com/map-markers_ConvexHull_Polygon.asp

  -- Larry
--~--~---------~--~----~------------~-------~--~----~
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