Leaflet 1.9 breaks Leaflet.heat
See original GitHub issueChecklist
- 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
First of all, thanks for your work!
The steps to reproduce the issue is just updating leaflet to 1.9 and use the leaflet.heat package. (https://github.com/Leaflet/Leaflet.heat) I also use the @types/leaflet and @types/leaflet-heat packages.
Expected behavior
This worked before 1.9.0:
import * as L from 'leaflet';
import 'leaflet.heat';
....
const heatmapLayer = L.heatLayer(data, { radius: 15, max: 10, minOpacity: 0.75 });
Current behavior
The app breaks and produces the following error:
export 'heatLayer' (imported as 'L') was not found in 'leaflet' (possible exports: Bounds, Browser, CRS, Canvas, Circle, CircleMarker, Class, Control, DivIcon, DivOverlay, DomEvent, DomUtil, Draggable, Evented, FeatureGroup, GeoJSON, GridLayer, Handler, Icon, ImageOverlay, LatLng, LatLngBounds, Layer, LayerGroup, LineUtil, Map, Marker, Mixin, Path, Point, PolyUtil, Polygon, Polyline, Popup, PosAnimation, Projection, Rectangle, Renderer, SVG, SVGOverlay, TileLayer, Tooltip, Transformation, Util, VideoOverlay, bind, bounds, canvas, circle, circleMarker, control, default, divIcon, extend, featureGroup, geoJSON, geoJson, gridLayer, icon, imageOverlay, latLng, latLngBounds, layerGroup, map, marker, noConflict, point, polygon, polyline, popup, rectangle, setOptions, stamp, svg, svgOverlay, tileLayer, tooltip, transformation, version, videoOverlay)
Minimal example reproducing the issue
No response
Environment
- Leaflet version: 1.9.0
- Browser (with version): All
- OS/Platform (with version): All
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:25 (10 by maintainers)
Top Results From Across the Web
leaflet.heat - npm
A tiny and fast Leaflet heatmap plugin.. Latest version: 0.2.0, last published: 7 years ago. Start using leaflet.heat in your project by ...
Read more >Style lines | Esri Leaflet - ArcGIS Developers
Add a custom style to line features using the style option from the L.esri.FeatureLayer class. For more explanation, visit the Style a feature...
Read more >Leaflet's worldCopyJump breaks map, zooming fixes it up ...
I had my map working with worldCopyJump set to true , but then it stopped working. I'm not sure exactly what broke it...
Read more >leaflet.heat not working for Angular 12-14 - Stack Overflow
Just import import 'leaflet/dist/leaflet.css' and the codesandbox works as expected. I am sure that it will work if you upgrade also in ...
Read more >Information for the user Scheriproct® Ointment (1.9 mg ...
(1.9 mg prednisolone hexanoate / 5.0 mg cinchocaine hydrochloride per 1 g) ... Read all of this leaflet carefully before you start using...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We could revert this work in a patch release and then re-introduce it in 2.0. It looks like this is creating too much fallout.
v1.9.1 released.