PaulLeCam / react-leaflet

React components for Leaflet maps
https://react-leaflet.js.org
Other
5.13k stars 884 forks source link

Changing the Marker styling options #85

Closed aauberg closed 8 years ago

aauberg commented 8 years ago

Is there a method for changing the marker styling options? The Marker tag picksup the 'position' attribute, does it also pickup 'color' or something like that?

bradsimantel commented 8 years ago

Leaflet markers don't have a color option, but they do have an icon option, and React-Leaflet will update your map when the value of that option changes. You can read more about Leaflet's icon here: http://leafletjs.com/reference.html#icon.

aauberg commented 8 years ago

I wondered about that, thanks @PaulLeCam !