setting custom, incrementing waypointMarker symbol

1 post / 0 new
sunbreaksoftware
setting custom, incrementing waypointMarker symbol

Hello,

I am programmatically creating a map route. The default symbols for the waypoints are an incrementing number with 1 starting at the start. I would like the waypoints to have the numbers starting with 1 at the first way point. Is this possible? I have this code below. Is there a way to specify this? Can I set a value in the layerOptions for the waypointMarkers? 

var map = L.mapquest.map('map', {

                center: [@Model.MapCenter],
                layers: L.mapquest.tileLayer('map'),
                zoom: 13
            });

            var directions = L.mapquest.directions();
            directions.setLayerOptions({
                startMarker: {
                    draggable: false,
                    icon: 'marker-start',
                    iconOptions: {
                      size: 'sm',
                      primaryColor: '#1fc715',
                    }
                },
                endMarker: {
                    draggable: false,
                    icon: 'marker-end',
                    iconOptions: {
                        size: 'sm',
                        primaryColor: '#e9304f',
                    }
                },
                waypointMarker: {
                    draggable: false,
                    iconOptions: {
                        symbol: '?',
                    }
                }
            });

            directions.route({
                start: '@Model.MapStart',
                end: '@Model.MapEnd',
                waypoints: [@Html.Raw(Model.GetWayPoints())]
            });
        }