I used the epoly.js from Mike William's site to plot mile markers on a
Google Map.

        var polyline = new GPolyline([

        new GLatLng(40.40246729103128,-105.0493597984314),
        new GLatLng(40.40241827029216,-105.04659175872803),
        new GLatLng(40.403088217303484,-105.04659175872803),
        new GLatLng(40.403055537116174,-105.04470348358154),
        new GLatLng(40.40096397212692,-105.04468202590942),
        new GLatLng(40.39522817533028,-105.04472494125366),
        new GLatLng(40.39395348746035,-105.04472494125366),
        new GLatLng(40.392760488491604,-105.04515409469604),
        new GLatLng(40.39282585884544,-105.04004716873169),
        new GLatLng(40.39285854399854,-105.0386095046997),
        new GLatLng(40.3930056269913,-105.03753662109375),
        new GLatLng(40.3934305316101,-105.0368070602417),
        new GLatLng(40.39289122913582,-105.03605604171753),
        new GLatLng(40.3926951180743,-105.03528356552124),
        new GLatLng(40.39272780329087,-105.03122806549072),
        new GLatLng(40.39225386609767,-105.03067016601562),
        new GLatLng(40.390276368022874,-105.03077745437622),
        new GLatLng(40.388086343716104,-105.03069162368774),
        new GLatLng(40.385275163369265,-105.03067016601562),
        new GLatLng(40.38460503910848,-105.03058433532715),
        new GLatLng(40.383281115485154,-105.03011226654053),
        new GLatLng(40.378410160169814,-105.02779483795166),
        new GLatLng(40.383281115485154,-105.03011226654053),
        new GLatLng(40.38460503910848,-105.03058433532715),
        new GLatLng(40.385275163369265,-105.03067016601562),
        new GLatLng(40.388086343716104,-105.03069162368774),
        new GLatLng(40.390276368022874,-105.03077745437622),
        new GLatLng(40.39225386609767,-105.03067016601562),
        new GLatLng(40.39272780329087,-105.03122806549072),
        new GLatLng(40.3926951180743,-105.03528356552124),
        new GLatLng(40.39289122913582,-105.03605604171753),
        new GLatLng(40.3934305316101,-105.0368070602417),
        new GLatLng(40.3930056269913,-105.03753662109375),
        new GLatLng(40.39285854399854,-105.0386095046997),
        new GLatLng(40.39282585884544,-105.04004716873169),
        new GLatLng(40.392760488491604,-105.04515409469604),
        new GLatLng(40.39395348746035,-105.04472494125366),
        new GLatLng(40.39522817533028,-105.04472494125366),
        new GLatLng(40.40096397212692,-105.04468202590942),
        new GLatLng(40.403055537116174,-105.04470348358154),
        new GLatLng(40.403088217303484,-105.04659175872803),
        new GLatLng(40.40241827029216,-105.04659175872803),
        new GLatLng(40.40246729103128,-105.0493597984314) ], "#B9002F",4,.4);
        map.addOverlay(polyline);


                var points = polyline.GetPointsAtDistance(1609.344);
                for (var i=0; i<points.length; i++) {
                map.addOverlay(new GMarker(points[i]));
                }


It works great, but... I want to customize that marker so I don't have
the standard red Google pin.  Is that possible?  Also, I'd even like
to go a step further and use custom icons for the specific mile
number.  I have the icons made already... for this forum, lets say
they are http://www.examplesite.com/1.png (1 represents the mile).

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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