[Fixed]-Passing JSON var in leaflet "on()" method

1👍

Here we go for the saving solution : I use let for the declaration of text, it will solve the closure issue.

let text = articles[i].fields.text;

( What's the difference between using "let" and "var" to declare a variable? )

I hope this is a good solution 🙂

Leave a comment