Iam getting map start point and end point lat lng in arguments like this (58.39847354300152, 15.579836368560791) and have to set two different markers for both..now iam able to set only one marker either start or end..how to set for both
function markerStartEnd(map,startPoint,endPoint,startTime,endTime){
var anchor = new google.maps.Point(20,41),
size = new google.maps.Size(41,41),
origin = new google.maps.Point(0,0),
icon = new google.maps.MarkerImage('../../static/js/start.png',size,origin,anchor);
new google.maps.Marker({icon:icon,map:map,position:startPoint});
new google.maps.Label({ position: startPoint, map: map, content:startTime});
icon = new google.maps.MarkerImage('../../static/js/end.png',size,origin,anchor);
new google.maps.Marker({icon:icon,map:map,position:endPoint});
new google.maps.Label({ position: endPoint, map: map, content:endTime});
}