Crash on DivOverlay.js when using Leaflet as esm moduleΒ #8533
Closed
Description
opened on Oct 6, 2022
Checklist
- I've looked at the documentation to make sure the behavior isn't documented and expected.
- I'm sure this is an issue with Leaflet, not with my app or other dependencies (Angular, Cordova, React, etc.).
- I've searched through the current issues to make sure this hasn't been reported yet.
- I agree to follow the Code of Conduct that this project adheres to.
Steps to reproduce
Go to the src file src/layer/DivOverlay.js at line 45 and remove the L. before LatLng so the complete line will be
if (options && (options instanceof LatLng || Util.isArray(options))) {...
Leaflet crash when directly imported using import directive.
Expected behavior
Everything normal...
Current behavior
The program crash...
Minimal example reproducing the issue
No response
Environment
- Leaflet version: 1.9.2
- Browser (with version): Firefox Nightly 107
- OS/Platform (with version): Windows 10
Activity