Comments (4)
I have not noticed any issues myself, but seems like a reasonable suggestion to me. If possible, do you have replication steps that would show the issue?
from esri-leaflet-vector.
I created a blank folder, cd into that folder, and initialize an npm package with npm init -y. Then install npm i leaflet esri-leaflet
. After that, I npm i esri-leaflet-vector
. I get the peerDependency warning:
npm WARN [email protected] requires a peer of esri-leaflet@^2.3.0 but none is installed. You must install peer dependencies yourself.
I guess its a minor issue, but making that change from ^
to >
would get rid of that warning, which might be confusing considering this plugin works with esri-leaflet v3.
from esri-leaflet-vector.
We are running into a similar issue with esri-leaflet-geocoder
here: Esri/esri-leaflet-geocoder#272
I plan to change the peerDependencies
to "esri-leaflet": ">2.3.0",
like you advise, but similar to the esri-leaflet-geocoder we will also update the dependencies version of "esri-leaflet": "^3.0.0",
I'm actually not sure if we need both ... or if only having it listed in one or the other is better ... need to do some research.
from esri-leaflet-vector.
Well it depends. Do you expect your users to install it themselves? Or do you want it to be automatic - i.e., if you install esri-leaflet-geocoder, you get esri-leaflet automatically installed? My inclination would be to keep it under peerDependencies, considering this is a plugin for esri-leaflet, which itself is a plugin for leaflet. IMO, people using this (or geocoder) plugin should take ownership of their leaflet and esri-leaflet installations on their own first - so it should be a peerDep. That's just my humble 2 cents on the matter.
That being said, from what I understand, npm 7 now automatically installs all peerDependencies, so this may be a moot point for npm 7 users.
from esri-leaflet-vector.
Related Issues (20)
- Add support for the basemap styles service v2 (beta) HOT 1
- Add a public method to expose the underlying MaplibreGL map object HOT 1
- Conflict between VectorBasemapLayer and VectorTileLayer HOT 4
- Add suggested conversions between v1 and v2 basemap style enumerations
- Vector Tile Layers "Unimplemented type : 3" and Failed to load Sprites HOT 8
- Token not included in Sprite request when `sprite` property in style is a full URL HOT 5
- Add support for a proxy HOT 3
- Update to maplibre-gl v3 HOT 5
- Export MaplibreGLLayer HOT 1
- Firefox Printing Issue HOT 3
- Set `preserveDrawingBuffer` to `true` in `MapLibreGLLayer` HOT 1
- 🎃 𝗛𝗮𝗰𝗸𝘁𝗼𝗯𝗲𝗿𝗳𝗲𝘀𝘁 𝗗𝗲𝘁𝗮𝗶𝗹𝘀 𝗳𝗼𝗿 𝗣𝗮𝗿𝘁𝗶𝗰𝗶𝗽𝗮𝗻𝘁𝘀 👨💻
- Multiline text not breaking HOT 13
- Text is backwards in RTL language basemaps HOT 2
- Update the "Gallery" example to v2 basemaps
- Add a static "setRTLTextPlugin" method HOT 5
- `wrong listener type: undefined` console warning HOT 6
- Incorrect CSS Color Prevents arcgis/navigation maps from loading HOT 6
- Add support for new v2 basemap parameters HOT 1
- Add hitTest function for vector tile layers
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-vector.