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
google.maps.LatLng.prototype.kmTo = function(a){
var e = Math, ra = e.PI/180;
var b = this.lat() * ra, c = a.lat() * ra, d = b - c;
var g = this.lng() * ra - a.lng() * ra;
var f = 2 * e.asin(e.sqrt(e.pow(e.sin(d/2), 2) + e.cos(b) *
e.cos(c) * e.pow(e.sin(g/2), 2)));
return f * 6378.137;
}
google.maps.Polyline.prototype.inKm = function(n){
var a = this.getPath(n), len = a.getLength(), dist = 0;
for(var i=0; i<len-1; i++){
dist += a.getAt(i).kmTo(a.getAt(i+1));
}
return dist;
}
but it dosent seem to work
On Apr 28, 5:28 pm, "
geocode...@gmail.com" <
geocode...@gmail.com>
wrote:
> On Apr 28, 9:23 am, fireofhellx <
homem...@aol.com> wrote:
>
> > right i have made a number of polylines but want to know how i would go
> > about adding a marker to them every 10 meters?
> > ive been looking around and havent found anything that orks
>
> Does this help:
http://groups.google.com/group/google-maps-js-api-v3/browse_frm/threa...
>
> -- Larry