Skip to content

Commit

Permalink
remove unneeded {s} from map url
Browse files Browse the repository at this point in the history
  • Loading branch information
lathoub committed Sep 14, 2024
1 parent 90df787 commit 053bef6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/views/collection.pug
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ block content
#map(style='width: 540px; height: 480px; position: relative;')
script.
const map = L.map("map").setView([52.300, 4.867], 11);
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'}).addTo(map);
L.tileLayer('http://tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'}).addTo(map);

const coords = !{JSON.stringify(content.extent.spatial.bbox)}
const bounds = [[coords[1], coords[0]], [coords[3], coords[2]]];
Expand Down
2 changes: 1 addition & 1 deletion src/views/collections.pug
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ block content
#map(style='width: 100%; height: 400px; position: relative;')
script.
const map = L.map("map").setView([52.300, 4.867], 11);
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'}).addTo(map);
L.tileLayer('http://tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'}).addTo(map);
2 changes: 1 addition & 1 deletion src/views/feature.pug
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ block content
#map(style='width: 100%; height: 400px; position: relative;')
script.
var map = L.map("map").setView([52.300, 4.867], 12);
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'}).addTo(map);
L.tileLayer('http://tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'}).addTo(map);
var features = !{JSON.stringify(content.geometry)}
L.geoJSON(features).addTo(map);
2 changes: 1 addition & 1 deletion src/views/items.pug
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ block content
#map(style='width: 540px; height: 480px; position: relative;')
script.
const map = L.map("map").setView([52.300, 4.867], 11);
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'}).addTo(map);
L.tileLayer('http://tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'}).addTo(map);
2 changes: 1 addition & 1 deletion src/views/landingPage.pug
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ block content
#map(style='width: 100%; height: 400px; position: relative;')
script.
const map = L.map("map").setView([52.300, 4.867], 11);
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'}).addTo(map);
L.tileLayer('http://tile.openstreetmap.org/{z}/{x}/{y}.png', {attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'}).addTo(map);

const coords = !{JSON.stringify(content.extent.spatial.bbox)}
const bounds = [[coords[1], coords[0]], [coords[3], coords[2]]];
Expand Down

0 comments on commit 053bef6

Please sign in to comment.