diff --git a/js/README.md b/js/README.md index fcdc038..b940fdf 100644 --- a/js/README.md +++ b/js/README.md @@ -23,7 +23,7 @@ Example of a PMTiles archive displayed in MapLibre GL JS: ```js let protocol = new pmtiles.Protocol(); -maplibregl.addProtocol("pmtiles",protocol.tileFunc); +maplibregl.addProtocol("pmtiles",protocol.tile); var style = { "version": 8, "sources": { @@ -31,4 +31,4 @@ var style = { "type": "vector", "tiles": ["pmtiles://example.pmtiles/{z}/{x}/{y}"], ... -``` \ No newline at end of file +```