From e3c265d878b9db335e7ce011f87afad17eea2b44 Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Fri, 14 Oct 2022 00:08:18 +0800 Subject: [PATCH] JS readme improvements --- js/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/README.md b/js/README.md index b940fdf..de631fe 100644 --- a/js/README.md +++ b/js/README.md @@ -10,7 +10,7 @@ Example of a raster PMTiles archive displayed in Leaflet: ```js const p = new pmtiles.PMTiles('example.pmtiles') -pmtiles.leafletRasterLayer(p,{attribution:'© OpenStreetMap contributors'}).addTo(map) +pmtiles.leafletRasterLayer(p,{attribution:'© OpenStreetMap'}).addTo(map) ```` ### Vector tileset @@ -29,6 +29,7 @@ var style = { "sources": { "example_source": { "type": "vector", - "tiles": ["pmtiles://example.pmtiles/{z}/{x}/{y}"], + "url": "pmtiles://https://example.pmtiles", + "attribution": '© OpenStreetMap' ... ```