Comments (11)
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').
from esri-leaflet.
Thanks @jgravois for the help. That workflow actually works for me:
from esri-leaflet.
I'll work on getting a StackBlitz, or similar, up shortly to reproduce the error I'm seeing locally. I think it's likely an issue arising from a mix of dependencies in an external project using both Leaflet and esri-leaflet.
from esri-leaflet.
@jgravois @gavinr Alright I've recreated the issue here: https://stackblitz.com/edit/vitejs-vite-k5qazv
Let me know if you have issues accessing that. It should build on start, but if not, you can just run npm run build
from esri-leaflet.
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 [email protected]
Thanks!
from esri-leaflet.
since leaflet is a peerDependency its up to you to install any version >= 1.0.0 that you want.
Line 77 in 7ee4b61
if you're seeing a specific problem here because of a breaking change in leaflet, it'd helpful if you could describe it in detail.
from esri-leaflet.
@addy thanks, can you please post the steps I would need to follow to see that error?
from esri-leaflet.
i assume you'll see what @addy mentioned as soon as you:
npm install --save-dev [email protected]
npm run build
from esri-leaflet.
Thanks for the reproduction case. I do see it there, and have also tested on this project: https://github.com/gavinr/esri-leaflet-react-demo/tree/leaflet-1.9 and get the same error:
I'm wondering if this is the same issue as what's going on here:
Leaflet/Leaflet#8467 / Leaflet/Leaflet#8451
from esri-leaflet.
I get the same errors importing heatLayer, SemiCircleMarker, and SemiCircle.
from esri-leaflet.
Looks like it's working for me now, thanks!!
from esri-leaflet.
Related Issues (20)
- FeatureLayer _redraw method throws error if defined for a multilinestring HOT 6
- Leaflet 1.9.3 error - can't access property "properties", layer.feature is undefined HOT 10
- Popups broken with esri-leaflet 3.0.10 and leaflet 1.7.1 HOT 1
- DarkGray and Gray tilemap do not have dynamic attributions HOT 3
- Points on the map are not being shown when zoomed in HOT 6
- Documentation for tiledmapLayer is not strictly accurate. Can use alternatives to epsg:3857 HOT 8
- Esri attribution removes custom Leaflet prefix
- Dynamic Map Layer layerDefs force POST HOT 4
- Token is exposed in GET request HOT 5
- Husky update HOT 1
- From ArcGIS Enterprise: Zooming in at maximum extent the layer stops loading HOT 1
- FeatureLayer: initial tiles are requested concurrently with metadata HOT 2
- 🎃 𝗛𝗮𝗰𝗸𝘁𝗼𝗯𝗲𝗿𝗳𝗲𝘀𝘁 𝗗𝗲𝘁𝗮𝗶𝗹𝘀 𝗳𝗼𝗿 𝗣𝗮𝗿𝘁𝗶𝗰𝗶𝗽𝗮𝗻𝘁𝘀 👨💻 HOT 1
- Request GeoJSON by deault for feature services
- When the lod value for some zoom level is 0 tiles is not display properly HOT 3
- MapServer with custom LODs. initial tile set zoom level is wrong
- Error when using ESM CDNs - `The requested module does not provide an export named 'toLatLngBounds'`
- Examples in Documentation return 401 error HOT 4
- esri-leaflet api required and freely allowed (terms of use)? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esri-leaflet.