mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 02:41:09 +00:00
Update README.md
This commit is contained in:
@@ -23,7 +23,7 @@ Example of a PMTiles archive displayed in MapLibre GL JS:
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
let protocol = new pmtiles.Protocol();
|
let protocol = new pmtiles.Protocol();
|
||||||
maplibregl.addProtocol("pmtiles",protocol.tileFunc);
|
maplibregl.addProtocol("pmtiles",protocol.tile);
|
||||||
var style = {
|
var style = {
|
||||||
"version": 8,
|
"version": 8,
|
||||||
"sources": {
|
"sources": {
|
||||||
@@ -31,4 +31,4 @@ var style = {
|
|||||||
"type": "vector",
|
"type": "vector",
|
||||||
"tiles": ["pmtiles://example.pmtiles/{z}/{x}/{y}"],
|
"tiles": ["pmtiles://example.pmtiles/{z}/{x}/{y}"],
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user