Since this commit in leaflet-pip, function is_poly is not anymore able to take into account polygons just created with leaflet-draw. I thought leaflet-draw created an incorrect polygon in this issue but I suspect now leaflet-pip is maybe not enough permissive.
I would suggest a PR which updates the is_poly function from your plugin:
Hello, I've tried to update my app with leaflet 1.0.x and I'm facing up to an incompatibility between 2 plugins:
Since this commit in leaflet-pip, function
is_poly
is not anymore able to take into account polygons just created with leaflet-draw. I thought leaflet-draw created an incorrect polygon in this issue but I suspect now leaflet-pip is maybe not enough permissive. I would suggest a PR which updates theis_poly
function from your plugin:Indeed layer created by leaflet-draw has no
l.feature && l.feature.geometry && l.feature.geometry.type
attribute...And maybe rollback entirely https://github.com/mapbox/leaflet-pip/commit/ff2b2f43df3d4a539afb587e7fe033046f6e3b7f for
is_poly
:What do you thinking about it ?
Fabien