Closed jmvivo closed 9 years ago
I hit this problem right off, and this pull request fixes it.
It's pretty common to create a GeoJSON layer synchronously and then add the data later, so this bug is critical for GeoJSON support.
The code change looks fine.
:+1:
Thanks!
When you try to create a L.Proj.GeoJSON layer with no data (to add it after layer creation):
You get an exception: