Skip to content

Commit b4a14e4

Browse files
authored
Update docs for protomaps-leaflet (#110)
1 parent fe58483 commit b4a14e4

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

basemaps/leaflet.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,23 @@ outline: deep
88
The simplest way to include a map in your application via script includes tag:
99

1010
```js
11-
<script src="https://unpkg.com/protomaps-leaflet@latest/dist/protomaps-leaflet.js"></script>
11+
<script src="https://unpkg.com/protomaps-leaflet@5.0.0/dist/protomaps-leaflet.js"></script>
1212
<script>
1313
const map = L.map('map')
14-
var layer = protomapsL.leafletLayer({url:'FILE.pmtiles OR ENDPOINT/{z}/{x}/{y}.mvt', theme: 'light'})
14+
var layer = protomapsL.leafletLayer({url:'FILE.pmtiles OR ENDPOINT/{z}/{x}/{y}.mvt', flavor: 'light', lang: 'en'})
1515
layer.addTo(map)
1616
</script>
1717
```
1818

19-
## Themes
19+
To use with a bundler:
2020

21-
The `theme` option must be one of `light`, `dark`, `white`, `grayscale`, `black`.
21+
```
22+
npm add protomaps-leaflet
23+
```
24+
25+
## Customization
26+
27+
The `flavor` option must be one of `light`, `dark`, `white`, `grayscale`, `black`.
2228

23-
This will assume the set of basemap layers described at [Basemap Layers](/basemaps/layers).
29+
The `lang` option can be one of the [supported languages](/basemaps/localization).
2430

0 commit comments

Comments
 (0)