update js README

This commit is contained in:
Brandon Liu
2022-06-01 10:32:51 +08:00
parent 6018d3d547
commit f865bd9899

View File

@@ -1,8 +1,6 @@
# PMTiles
```js
<script src="https://unpkg.com/pmtiles@1.0.2/dist/index.js"></script>
```
the [PMTiles](https://www.npmjs.com/package/pmtiles) package can be included via script tag or ES6 module.
## Leaflet
@@ -21,7 +19,7 @@ pmtiles.leafletLayer(p,{attribution:'© <a href="https://openstreetmap.org">Open
## MapLibre GL JS
Example of a vector PMTiles archive displayed in MapLibre GL JS:
Example of a PMTiles archive displayed in MapLibre GL JS:
```js
let cache = new pmtiles.ProtocolCache();