question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Leaflet 1.9 breaks Leaflet.heat

See original GitHub issue

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

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:closed
  • Created a year ago
  • Reactions:2
  • Comments:25 (10 by maintainers)

github_iconTop GitHub Comments

5reactions
jonkoopscommented, Sep 27, 2022

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.

3reactions
mournercommented, Sep 23, 2022

v1.9.1 released.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found