The <DivIcon> renders as expected when I pass hard coded values to <Marker latLng={[500,500]}>
But <DivIcon> does not render at all when I pass dynamic values from #each to <Marker latLng={[location.lat, location.lng]}>
Does anyone have any ideas why this is the case and how to fix it or possible work arounds. I have hit a wall.
The
<DivIcon>
renders as expected when I pass hard coded values to<Marker latLng={[500,500]}>
But<DivIcon>
does not render at all when I pass dynamic values from#each
to<Marker latLng={[location.lat, location.lng]}>
Does anyone have any ideas why this is the case and how to fix it or possible work arounds. I have hit a wall.Hard coded latLng works:
Dynamic latLng does not work: