Skip to content

Commit

Permalink
Simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed Nov 24, 2023
1 parent e473a1d commit 405e31b
Showing 1 changed file with 2 additions and 36 deletions.
38 changes: 2 additions & 36 deletions pmtiles-test.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -42,44 +40,12 @@
type: "vector",
url: "pmtiles://" + PMTILES_URL,
attribution: '© <a href="https://openstreetmap.org">OpenStreetMap</a>'
},
"example_source2": {
type: "vector",
url: "pmtiles://" + PMTILES_URL2,
attribution: '© <a href="https://openstreetmap.org">OpenStreetMap</a>'
}
},
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": {
Expand Down

0 comments on commit 405e31b

Please sign in to comment.