Skip to content

Commit

Permalink
Add npm install instructions to readme.md (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincerubinetti authored Oct 18, 2023
1 parent dd00e0c commit 2b2911e
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,22 @@ An extension to [Leaflet](http://leafletjs.com/) that contains configurations fo

# Installation

Download [leaflet-providers.js](https://raw.githubusercontent.com/leaflet-extras/leaflet-providers/master/leaflet-providers.js) and include it in your page after including Leaflet, e.g.:
## Bundler

<head>
...
<script src="http://unpkg.com/leaflet@latest/dist/leaflet.js"></script>
<script src="js/leaflet-providers.js"></script>
</head>
```shell
npm install leaflet-providers
```

## CDN

Include `leaflet-providers.js` in your page after including Leaflet, e.g.:

```html
<head>
<script src="https://unpkg.com/leaflet@latest/dist/leaflet.js"></script>
<script src="https://unpkg.com/leaflet-providers@latest/leaflet-providers.js"></script>
</head>
```

# Usage

Expand Down

0 comments on commit 2b2911e

Please sign in to comment.