On Apr 28, 7:44 pm, fireofhellx <[email protected]> wrote:
> yes that is what i need but there is a lot going on in that script
> do i just need to get the length of my polylines then put markers on
> at a set distance i have found this for calculating the length

> but it dosent seem to work

I been using those methods a lot and they work fine for me. The first
one calculates distance between two LatLng points. The second one
makes use of that and iterates through a polyline segments and returns
a cumulated length. Actually I wrote them but never documented them.

If you have a polyline called poly, you can test it by:

   alert(poly.inKm());

By using those, you can create a 'milestone function'. See
getPointAtDistance() function in Mike Williams' v2 EPoly library.
http://econym.org.uk/gmap/epoly.htm

The polyline length is measured to the last vertex before milestone
and to the first vertex after milestone. The last part is calculated
by interpolation.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to