[ ] I'm sure this is a Leaflet Draw code issue, not an issue with my own code nor with the framework I'm using (React…)
[ ] I've searched through the issues to make sure it's not yet reported
How to reproduce
Leaflet version I'm using: 1.3.3
Leaflet Draw version I'm using: 0.4.12
Browser (with version) I'm using: Chrome
Action:
Result:
leaflet.draw.js?18c5:8 Uncaught TypeError: Cannot read property 'project' of null at NewClass._getMiddleLatLng (leaflet.draw.js?18c5:8) at NewClass._createMiddleMarker (leaflet.draw.js?18c5:8) at NewClass.n (leaflet.draw.js?18c5:8) at NewClass.fire (leaflet-src.js?9eb7:593) at NewClass._onDragEnd (leaflet-src.js?9eb7:7302) at NewClass.fire (leaflet-src.js?9eb7:593) at NewClass.finishDrag (leaflet-src.js?9eb7:5923) at NewClass._onUp (leaflet-src.js?9eb7:5898) at handler (leaflet-src.js?9eb7:2653) at _handlePointer (leaflet-src.js?9eb7:2100)
How to reproduce
Action:
Result:
leaflet.draw.js?18c5:8 Uncaught TypeError: Cannot read property 'project' of null at NewClass._getMiddleLatLng (leaflet.draw.js?18c5:8) at NewClass._createMiddleMarker (leaflet.draw.js?18c5:8) at NewClass.n (leaflet.draw.js?18c5:8) at NewClass.fire (leaflet-src.js?9eb7:593) at NewClass._onDragEnd (leaflet-src.js?9eb7:7302) at NewClass.fire (leaflet-src.js?9eb7:593) at NewClass.finishDrag (leaflet-src.js?9eb7:5923) at NewClass._onUp (leaflet-src.js?9eb7:5898) at handler (leaflet-src.js?9eb7:2653) at _handlePointer (leaflet-src.js?9eb7:2100)
Thank you so much!