change the colors of a marker

2 posts / 0 new
Last post
reinel215
change the colors of a marker

Heyy!!! good day. well now i wanna change de colors of a marker. i do something like this 

L.marker(latLng, {

    icon: {

    primaryColor: '#417505',

    secondaryColor: '#e3d319',

    size: 'sm'

  },

      draggable: false

    }).addTo(fg);

 

but dont work i need help for change the colors.


MQBrianCoakley
Try L.mapquest.icons.marker.
Try L.mapquest.icons.marker. Details here.