On Nov 3, 8:35 pm, yee379 <[EMAIL PROTECTED]> wrote: > > i believe that i need to pass a GLatLng object as part of the > GEvent.trigger arguments. is this true? is so, is there an easy way of > determining say the mid-distance coordinates of the polyline? (i'm > using geodesic polylines)
You do need a GLatLng object as you say. I was going to suggest Mike's EPoly extension to the API, which provides a Distance() method to find the length of the line, and GetPointAtDistance() to find a point at a certain distance along the line. With those, you could find the mid- point of the line quite easily. Unfortunately EPoly doesn't cater for geodesic lines. Have a look at http://maps.forum.nu/gm_flight_path.html where Marcelo has calculated a geodesic line: the mid point is point 25 on the calculated line. Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
