mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
fix binding this in ProtocolCache; update maplibre examples
This commit is contained in:
@@ -18,7 +18,8 @@
|
||||
<body>
|
||||
<div id="map"></div>
|
||||
<script>
|
||||
pmtiles.addProtocol(maplibregl)
|
||||
let cache = new pmtiles.ProtocolCache();
|
||||
maplibregl.addProtocol("pmtiles",cache.protocol);
|
||||
var style = {
|
||||
"version": 8,
|
||||
"sources": {
|
||||
|
||||
Reference in New Issue
Block a user