Change icons when plotting a route in Google Maps

0

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.

    
asked by Wuilmer Medrano 18.10.2016 в 03:41
source

1 answer

2

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
});
    
answered by 19.10.2016 в 01:40