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.

Support for Leaflet 1.9.0

See original GitHub issue

Describe the problem

Looks like esri-leaflet is currently on the 1.6.0 release of Leaflet. There have been a few changes, improvements and bug fixes since then. Does Esri have a usual timeline for incorporating new versions of Leaflet?

Describe the proposed solution

Libraries built on top of Leaflet that can be used in conjunction with Esri’s plugin use more advanced versions of Leaflet. It would be great if this library supported the latest versions under the hood and allowed consumers to be able to upgrade their Leaflet dependencies.

Alternatives considered

No response

Additional Information

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
addycommented, Sep 22, 2022

Sure, yeah here’s the specific issue that I’m seeing:

Failed to compile.

./node_modules/esri-leaflet/src/Layers/FeatureLayer/FeatureGrid.js
Attempted import error: 'toLatLngBounds' is not exported from 'leaflet' (imported as 'latLngBounds').
1reaction
gavinrcommented, Oct 4, 2022

Leaflet released v1.9.2 a few hours ago: https://github.com/Leaflet/Leaflet/releases/tag/v1.9.2

And I have tested that using 1.9.2 (instead of 1.9.0 or 1.9.1) fixes this issue for me.

@addy please test after running:

npm install leaflet@1.9.2

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Leaflet 1.9 released - a JavaScript library for interactive maps
Dropping support for Internet Explorer. ... Leaflet is written entirely in ES5, a version of JavaScript supported by legacy browsers.
Read more >
leaflet - npm
JavaScript library for mobile-friendly interactive maps. Latest version: 1.9.3, last published: a month ago. Start using leaflet in your ...
Read more >
Leaflet 1.9 documentation - DevDocs
Leaflet 1.9.1 API documentation with instant search, offline support, keyboard shortcuts, mobile version, and more.
Read more >
Install and set up | Esri Leaflet - ArcGIS Developers
You can access Esri Leaflet modules on the CDN or you can install them with NPM. The builds are also available for download...
Read more >
leaflet-rails | RubyGems.org | your community gem host
This gem provides the leaflet.js map display library for your Rails 4/5 ... 1.9.1 - November 14, 2022 (284 KB); 1.9.0 - November...
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