leaflet-extras / leaflet-providers

An extension to Leaflet that contains configurations for various free tile providers.
https://leaflet-extras.github.io/leaflet-providers/preview/
BSD 2-Clause "Simplified" License
2.15k stars 668 forks source link

add npm install instructions #530

Closed vincerubinetti closed 11 months ago

brunob commented 1 year ago

Doc is always welcome, but i doubt on this, any thoughts @jieter ?

jieter commented 11 months ago

I'd say a single package manager should be enough, I think yarn users know that they can replace npm with yarn. Can we also use unpkg for leaflet-providers.js, avoiding the need to download it? That would be a nice improvement.

brunob commented 11 months ago

Can we also use unpkg for leaflet-providers.js, avoiding the need to download it? That would be a nice improvement.

Nice catch https://unpkg.com/browse/leaflet-providers@latest/leaflet-providers.js does the job ping @vincerubinetti

vincerubinetti commented 11 months ago

I've updated the branch. That unpkg link was incorrect, I fixed it. The yarn command is just there for copy/paste convenience but I removed it.

jieter commented 11 months ago

Looks good, thanks!