I want to change the default icon of marker when I search route between two locations. How can I do it? I use this code but I didn't get only the map without route and points
var start = new google.maps.Marker({
position: new google.maps.LatLng(lat, lon),
icon:'http://www.google.com/mapfiles/dd-start.png',
map: map });
var end = new google.maps.Marker({
position: new google.maps.LatLng(lat1, long1),
icon:'http://www.google.com/mapfiles/dd-end.png',
map: map });
var request = {
origin: start,
destination: end,
optimizeWaypoints: true,
travelMode: google.maps.DirectionsTravelMode.DRIVING
};