Closed mr-romeijn closed 8 years ago
Please provide steps to reproduce / example code.
Added code samples
Hard to say what could be the issue looking at your code, but here is a working example of dynamic polylines and color: http://jsfiddle.net/mf9z320t/ Unless there is a very particular edge case, I expect the issue is likely with your application not injecting the needed data to the components.
Please make sure to check the following boxes before submitting an issue. Thanks!
Expected behavior
Dynamic props automatically updating path
Actual behavior
They're not being updated at all. Props are actually being updated by redux but Leaflet dynamic prop changes aren't being displayed. (New multiPolyLine isn't being drawn when polylines prop changes.
So as seen in above code there's a simple dropdown which changes the component state when changed. All the props get updated properly (tested) and It also triggers the render method accordingly; but it doesn't reflect on the leaflet map.
--Editted (Added code samples)
Redux, React-leaflet