From 405e31bc8facc3b2ca4627be1ee7f936011c7d1a Mon Sep 17 00:00:00 2001 From: robinlovelace Date: Fri, 24 Nov 2023 20:12:42 +0000 Subject: [PATCH] Simplify test --- pmtiles-test.html | 38 ++------------------------------------ 1 file changed, 2 insertions(+), 36 deletions(-) diff --git a/pmtiles-test.html b/pmtiles-test.html index dd90b03..dcb255a 100644 --- a/pmtiles-test.html +++ b/pmtiles-test.html @@ -21,9 +21,7 @@ let protocol = new pmtiles.Protocol(); maplibregl.addProtocol("pmtiles",protocol.tile); - let PMTILES_URL = "https://protomaps.github.io/PMTiles/protomaps(vector)ODbL_firenze.pmtiles"; - let PMTILES_URL2 = "rnet_limerick.pmtiles" - + let PMTILES_URL = "rnet_limerick.pmtiles" const p = new pmtiles.PMTiles(PMTILES_URL); // this is so we share one instance across the JS code and the map renderer @@ -42,44 +40,12 @@ type: "vector", url: "pmtiles://" + PMTILES_URL, attribution: '© OpenStreetMap' - }, - "example_source2": { - type: "vector", - url: "pmtiles://" + PMTILES_URL2, - attribution: '© OpenStreetMap' } }, layers: [ - { - "id":"buildings", - "source": "example_source", - "source-layer":"landuse", - "type": "fill", - "paint": { - "fill-color": "steelblue" - } - }, - { - "id":"roads", - "source": "example_source", - "source-layer":"roads", - "type": "line", - "paint": { - "line-color": "black" - } - }, - { - "id":"mask", - "source": "example_source", - "source-layer":"mask", - "type": "fill", - "paint": { - "fill-color": "white" - } - }, { "id":"rnet_limerick", - "source": "example_source2", + "source": "example_source", "source-layer":"rnet_limerick", "type": "line", "paint": {