Estoy desarrollando una aplicación de Google Maps. Agregué waypoints pero quiero darle un ícono diferente. (en lugar de círculos blancos)
aquí está mi código de solicitud:

return { location: { lat: parseFloat(element.per_add_lat), lng: parseFloat(element.per_add_long), }, stopover: element.personel_id != -1 ? true : false, }; var request = { origin: start, destination: end, optimizeWaypoints: true, avoidHighways: false, unitSystem: google.maps.UnitSystem.METRIC, travelMode: "DRIVING", waypoints: waypoints, }; console.log("waypoint", request);Si usa la clase DirectionsRenderer para representar su ruta, puede definir el parámetro markerOption que cambiará todos los íconos. Si desea tener un ícono diferente en cada waypoint, mireaquí , pero en general tendrá que crear marcadores por separado.