I have a function that traces a route between 2 points, but in the icons it places point a and point b. I need to change the source and destination icon.
I have a function that traces a route between 2 points, but in the icons it places point a and point b. I need to change the source and destination icon.
The Marker constructor receives within icon configurations in which you can specify an icon image. Ex:
new google.maps.Marker({
position: feature.position,
icon: 'http://es.seaicons.com/wp-content/uploads/2016/03/Map-Marker-Marker-Outside-Pink-icon.png',
map: map
});