mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
update js README
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
# PMTiles
|
# PMTiles
|
||||||
|
|
||||||
```js
|
the [PMTiles](https://www.npmjs.com/package/pmtiles) package can be included via script tag or ES6 module.
|
||||||
<script src="https://unpkg.com/pmtiles@1.0.2/dist/index.js"></script>
|
|
||||||
```
|
|
||||||
|
|
||||||
## Leaflet
|
## Leaflet
|
||||||
|
|
||||||
@@ -21,7 +19,7 @@ pmtiles.leafletLayer(p,{attribution:'© <a href="https://openstreetmap.org">Open
|
|||||||
|
|
||||||
## MapLibre GL JS
|
## 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
|
```js
|
||||||
let cache = new pmtiles.ProtocolCache();
|
let cache = new pmtiles.ProtocolCache();
|
||||||
|
|||||||
Reference in New Issue
Block a user