Fork me on GitHub
#re-frame
<
2019-05-23
>
manandearth18:05:14

why can't I manage to create a component for a leaflet map whose markers are set via ajax from my db connection? I've read that leaflet is not a dom element and that I need to make a form 3 component... No problems with markers from a static map but yes via ajax...

manandearth18:05:43

more of a reagent question, but I thought this was the busier channel..

valtteri19:05:56

I managed to get Leaflet working using similar pattern.

manandearth19:05:08

I don't quite understand why it doesn't work with a json called by Ajax

manandearth19:05:42

I will try to adapt the example.

valtteri19:05:14

Hard to say without seeing the code but I’m guessing your component is not updating properly.

valtteri19:05:38

You could also try your luck with react-leaflet.

manandearth19:05:40

Yes I saw that.. so many options..